>-----Original Message-----
>From: brian moseley
>To: [EMAIL PROTECTED]
>Sent: 7/7/01 5:34 PM
>Subject: Re: Apache::SimpleTemplate
>
>On Sat, 7 Jul 2001 [EMAIL PROTECTED] wrote:
>
>> Text::Template probably is the most similar existing
>> package, but it is not made for mod_perl. someone well-
>> versed in mod_perl could build a mod_perl wrapper of it
>> fairly quickly, but they or especially someone new to
>> mod_perl shouldn't have to. (i don't know of any such
>> wrapper existing in CPAN...)
>
>if such a wrapper did exist, would you use it? if it
>doesn't, why don't you write one yourself?

I actually use Text::Template for all my templating (sigh), and have such a
wrapper (save just a bit of custom code).  I basically implement the HASH
version and use a PerlInitHandler to set up the substitutions using pnotes.
I can work it up into a more generic release if anyone is interested, but
using Text::Template is really incredibly simple and it's just a few lines
of code (and actually twice as long as it needs to be due to copious
debugging), so I really don't think a release is warranted.

In reality, I feel guilty every time I use it for not migrating to
TemplateToolkit or one of the other systems available.

--Geoff

Reply via email to