Problem with METAL syntax

Michele Beltrame <domain-pzZ8rf8/[email protected]>
Newsgroups gmane.comp.lang.perl.modules.petal
Message-ID <[email protected]>
Hi!

I'm having some problems using the METAL syntax. When I include a macro
from another file, it doesn't get correctly included in the first
occasion, but in subsequent others is is. For instance, I have the
following macro in frammenti.xhtml:

    <span metal:define-macro="titolo">
      La casa degli spiritosi
    </span>

I include it from the following file (I just report part of it here,
to make the message short):

    <p metal:use-macro="./frammenti.xhtml#titolo">
      Titolo
    </p>   
    <p metal:use-macro="./frammenti.xhtml#titolo">
      Titolo
    </p>   

The output is:

    <?include file="./frammenti.xhtml#titolo"?>
    <span>
      La casa degli spiritosi
    </span>

While I think the correct output should be:

    <span>
      La casa degli spiritosi
    </span>
    <span>
      La casa degli spiritosi
    </span>

This happens also if the macros included have different names from one
to the other: the first one gives the problem, while all the others go
just fine.

Am I doing something wrong?

	Thank you, Michele.

-- 
Michele Beltrame
http://www.italpro.net/mb/
ICQ# 76660101 - e-mail: mb-pzZ8rf8/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.