Date: Mon, 30 Aug 2004 23:35:39 +0100
From: Simon Cozens <[EMAIL PROTECTED]>
To: Dennis Daupert <[EMAIL PROTECTED]>
Cc: [EMAIL PROTECTED]
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
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to