>>>>> "Sergey" == Sergey Martynoff <[EMAIL PROTECTED]> writes:
Sergey> my $wrappers = [ 'my_default_wrapper.tt' ];
Sergey> my $template = Template->new({
Sergey> WRAPPER => $wrappers,
Sergey> # pass an array ref (!)
Sergey> };
Sergey> $template->process('foo', {
Sergey> wrapper_array => $wrappers,
Sergey> # pass THE SAME array ref as a variable to template
Sergey> });
This would so scream "I don't want to maintain this" to me.
However, others may have varying degrees of tolerance to pain.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[email protected]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates