Hi, taken the following macro and macro-usage:
<tal:block metal:define-macro="ul"> <ul> <li tal:repeat="item items"> <tal:block metal:define-slot="li" /> </li> </ul> </tal:block> <tal:block tal:define="items php:array('a', 'b', 'c')" metal:use-macro="ul"> <tal:block metal:fill-slot="li"> ${item} </tal:block> </tal:block> I would expect the template to be rendered like this: <ul> <li>a</li> <li>b</li> <li>c</li> </ul> But with the current stable and beta what you get is a PHPTAL_VariableNotFoundException saying "Unable to find variable 'item' in current scope. More generally spoken: Variables defined within a macro definition cannot be accessed while using the macro and filling one of its slots. Is this a bug, missing implementation or an unwanted feature? Thanks for any reply, Per -- webfactory GmbH Per Bernhardt, Anwendungsentwickler Lessingstraße 60 53113 Bonn Germany Fon +49 228 9114455 Fax +49 228 9114499 www.webfactory.de p...@webfactory.de Geschäftsführer: Sebastian Kugler, Matthias Pigulla Handelsregister: HRB 8673, Amtsgericht Bonn _______________________________________________ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal