Re: [Templates] RE: Templates in database -- got it
[prev]
[thread]
[next]
[Date index for 2004/08/31]
> Date: Mon, 30 Aug 2004 23:35:39 +0100
> From: Simon Cozens <simon@xxxxxxxxxxxx.xxx>
> To: Dennis Daupert <ddaupert@xxx.xxx>
> Cc: templates@xxxxxxxxxxxxxxxx.xxx
> Subject: Re: [Templates] RE: Templates in database -- got it
>
> Dennis Daupert:
>
>>I just found the solution in the tt archive. The discussion on
>>Interpolating tags within tags aplies here too. I just piped
>>my variable holding the email body template thru eval,
>>and it works great. Thanks, guys!
>>
>>[% tmpl.body | eval %]
>
>
> May I suggest another way to do things? This is a template class that directly
> reads templates from the database, so you don't have to mess with the DBI
> plugin. It's somewhat abridged from the original Feuilleton::View class, which
> you can find by Googling.
>
This looks really cool and makes me feel stupid for never even thinking about
it, but before I get too excited, how would one handle [% INCLUDE %] in such a
scenario? A handler perhaps?
Tosh
--
McIntosh Cooey - Twelve Hundred Group LLC - http://www.1200group.com/
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates
 |
 |
Re: [Templates] RE: Templates in database -- got it
Tosh Cooey 23:01 on 31 Aug 2004
|