[Templates] wrapper in control?
Randal L. Schwartz
merlyn@stonehenge.com
22 Aug 2000 23:48:51 -0700
>>>>> "Randal" == Randal L Schwartz <merlyn@stonehenge.com> writes:
Randal> So I plugged that in.
Randal> [% capture = INCLUDE $file -%]
Randal> captured data = [% capture %]
Randal> [% STOP %]
Randal> Guess what? it triggers an error! So much for the "graceful ending"
Randal> mentioned in the manual.
Randal> So is the manual wrong, or is my brain wrong?
After looking at Template::Service a bit, I see what's happening.
So, I'm gonna hack in a patch to Template::Service, and I want
some feedback about what to call it.
The new SUPPRESS_PROCESS flag can be set (internally handed to
Template::Service) to true, which will cause the template itself
to not be processed. This gives the PRE_PROCESS or POST_PROCESS
the opportunity to run [% INCLUDE $template ] under their own
control (for a total wrapper effect or post-processing through a
filter or cache), or avoid entirely.
I'll patch mine, and send the patch to Andy. Good name?
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <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!