Re: Template from DB, not file

Roger Burton West <[email protected]> Sun, 14 Jan 2007 21:52:23 +0000
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <[email protected]>
On Sun, Jan 14, 2007 at 10:48:47PM +0100, Joakim Syversen wrote:

>Is it possible to use HTML::TEMPLATE with the template as a string from a 
>database rather than a file? I've looked in the examples and some of the 
>documentation but everywhere the template seems to be stored in a file.

You can certainly use the template as a reference to a scalar (a
"string"). Search the documentation for "scalarref".

R

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV