[PHPTAL] nested macro
Piotr Kabacinski
kabot at seo.pl
Tue Jan 16 11:38:16 CET 2007
Hello,
I'm wondering if it's possibile to do the following
Prepare macro similar to this
<div metal:define-macro="main_list" class="list_frame">
<b tal:content="list_title"></b><br/>
<div class="list">
<span tal:replace="list_content"/>
</div>
</div>
Use it in this way
<div metal:use-macro="main_list"
tal:define="list_title string:Main List">
<li>one
<li>two
</div>
And, what i want to obtain in html is
<div class="list_frame">
<big>Main List</big>
<div class="list">
<li>one
<li>two
</div>
The problem is how to fullfil variables list_title and list_content?
Maybe there is phptal variable that holds tag content and i could use it
in macro definition?
greetings
----------------
Piotr Kabacinski
More information about the PHPTAL
mailing list