Shannon, Bryan wrote: > I would LOVE to have a template that looks like this instead:
[...] > I was thinking that by getting access to the makeup of an unparsed "block" > from the toolkit would allow me to do what I want... Perhaps the EXPOSE_BLOCKS option does what you want? use Template; my $tt = Template->new( EXPOSE_BLOCKS => 1 ); $tt->process(\*DATA) || die $tt->error(); __DATA__ [% PROCESS multiblock/before %] [% PROCESS multiblock/middle FOREACH [1..5] %] [% PROCESS multiblock/after %] Here's the 'multiblock' file: [% BLOCK before %] This is the before block. [% END %] [% BLOCK middle %] This is the middle block. [% END %] [% BLOCK after %] This is the after block. [% END %] HTH A _______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
