Jean-Michel Hiver | 15 Mar 17:25

Re: Problem with METAL syntax

Michele Beltrame wrote:

>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>
>
(Continue reading)


Gmane