in reply to How to design website structure?
Mason and Template will be more "familiar" than HTML::Template as they allow you to embed code, macros, and mini-language directives. In TT2 (Template) you could have a structure like so-
[% PROCESS header.tt %] [% PROCESS ${variable_template_name_from_code}.tt %] [% PROCESS footer.tt %]
-and then pass the middle template name in your code. There are many ways to do this sort of thing and you'll need to read the docs carefully but you can already see how easy it is to organize templates into reusable parts.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to design website structure?
by dsheroh (Monsignor) on Feb 14, 2010 at 09:51 UTC |