Re: Base templates and sub templates
C Hagstrom <[email protected]> Fri, 16 Mar 2007 15:07:57 -0400
| Newsgroups | gmane.comp.lang.perl.modules.html-template |
|---|---|
| Message-ID | <[email protected]> |
I'm not that savvy of an HTML::Template user .... and I thought that variables were typically available for use in included templates without the use of "::Set".... maybe I'm missing something? Or maybe I'm just flat out wrong? Carl >What I did for bailii.org (and various other sites based on that code) >is a very simple approach: every page does a <tmpl_include> of the "top" >and "bottom" templates, which wrap the page-specific content. Using my >HTML::Template::Set module extension, the page template can then pass >variables to the included templates (such as the page's title). >More information if it's wanted. >Roger C. Hagstrom [email protected] ------------------------------------------------------------------------- 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