[ZPT] Metal and macros

Magnus Heino magnus.heino@rivermen.se
Tue, 17 Jul 2001 17:22:22 +0100


Hi.

I am browsing through the TAL code, but I can't find what I'm looking
for.

Consider this;

mydocument looks like this;

<span metal:use-macro="here/myobject/macros/mymacro">

myobject holds this;

<span metal:define-macro="mymacro">
foobar
</span>

Now, If I expand mydocument I get

<span metal:use-macro="here/myobject/macros/mymacro">
foobar
</span>

What if I want myobject NOT to be a PageTemplate. What methods should
I implement?

How can I have classes other than PageTemplate defining macros?

Any hints?

--

  /Magnus Heino