RE: [htmltmpl] placing .tmpl files in a subdirectory?
Brought to you by:
samtregar
From: John B. <joh...@ya...> - 2002-07-03 12:01:50
|
To stir the pot a bit: If you're going to put the template in the same file as your code, you might as well forget HTML::Template altogether and just print out your page with a "print <<HERE;" statement and embedded variables. It amounts to the same concept: first you prepare your substitution data, then you print the page making the substitutions. And the print version is more versatile, although less maintainable. - John --- Philip S Tellis <phi...@gm...> wrote: > On Tue, 2 Jul 2002, Kenny Smith wrote: > > > > my $t = new HTML::Template(filehandle => *DATA); > > > > > > then, you just put your template in the source > file itself, either after > > > __DATA__ or after __END__ > > > > But... that goes against everything that > HTML::Template stands for, > > imo. The separation of program from display.. the > ability to change > > the look without editing the source, etc. > > true, but there is that small percent of web site > hosting companies that > don't let you keep files outside your document root > - and you really > don't want your templates read by everyone. > > besides, what you can really do, is get your > templates designed > separately, and then just copy then into the bottom > of your file before > deployment. > > like I said though, I've never done that. > > Philip ===== "Now it's over, I'm dead, and I haven't done anything that I want; or, I'm still alive, and there's nothing I want to do." - They Might Be Giants, http://www.tmbg.com __________________________________________________ Do You Yahoo!? Sign up for SBC Yahoo! Dial - First Month Free http://sbc.yahoo.com |