To be correct, Mark needs to quote block name when passing
parameters to WRAPPER:
[% WRAPPER bigtable.tt  sidebar = 'mysidebar' %]

In this case the sidebar variable contains literal name, so block
should be called as Jason said:
[% PROCESS $sidebar %]


-- 
Sergey Martynoff


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Jason Gottshall
> Sent: Wednesday, September 28, 2005 1:42 AM
> To: [email protected]
> Subject: RE: [Templates] Passing a BLOCK to another template?
> 
> You've already passed the name of the block to your wrapper, so
just
> process it by name:
> 
> --bigtable.tt--
> <table>
> <tr>
> <td>foo</td>
> [% IF sidebar %]<td>[% PROCESS $sidebar %]</td>[% END %]
> </tr>
> </table>


_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to