On 15-01-2010 at 16:07:45 Peter Niederlag <pe...@niederlag.de> wrote:
I want to explore the possibilities of macros. Using a
metal:define-macro INSIDE my template works as expected.
However I fail to use a macro defined in another file.
Trying to access the same macro from another template by
'metal:use-macro="file.xhtml/mymacro"' unfortunatly fails. :-<
It seems to me that the generated template tries to call a
'tpl_4b5072d9_functions__hdJL174SgV8j9WAXA4fLmw_mymacro()' but the
generated file has written this function into
Note that the '_maymacro' part is missing here.
Does anybody have an example on using macros in "external" files that is
working? Or could it be there is a bug?
The external file has to have element with appropriate metal:define-macro
In your case file.xhtml is expected to have <foo
You can't simply call entire file as macro.
PHPTAL mailing list