RE: [htmltmpl] Opppsss forgot: multiple templates question
Brought to you by:
samtregar
From: Kenny S. <ke...@jo...> - 2002-08-03 01:23:06
|
Hi Will, I _think_ what your asking is about including templates within your templates... and yes, you can. Using <TMPL_INCLUDE NAME=/path/to/file.tmpl> HTML::Template doesn't care about your HTML syntax, it only cares about your H::T syntax, so, yes you can span tables across your templates, and such. I do that with my headers and footers. In the header, I print the logo of the site and navbar, and then open a <td>... then in the footer I close that td and the rest of the table. So in my main template, I have something like: ------ policies.tmpl ------- <TMPL_INCLUDE NAME=header.tmpl> <!-- whatever HTML I want for this page --> <TMPL_INCLUDE NAME=footer.tmpl> ---------- end --------------- Kenny Smith JournalScape.com |