|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re: Learning Template::Toolkit - have I understood?by punch_card_don (Curate) |
| on Aug 30, 2006 at 09:59 UTC ( [id://570389]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
1. RE: Dynamic generation - yes, that's certainly one option I'm considering. I like the idea of pre-generation of static html pages for the clarity, the server load. But this requirement for authors to launch a generation routine each time they make a change is a stumbling block. One possible compromise would be a secure author's control panel page with a "Generate!" button that launches a cgi script to do all the work. It's not bad.
2. RE: ttree recursion vs. content recursion - From the tutorial suggested above, I note: DYNAMIC CONTENT GENERATION VIA CGI SCRIPT Which I believe implies that although TT has ttree to automatically drill down through a hierarchy to find and process a whack of templates, if I have only one template and a whack of content files, I have to do the recursion work myself. To my mind, this seems a little backwards, since a large template-driven site is rarely going to be the first case, and much more commonly going to be the second case. No? So, OK, I make my template with the appropriate INCLUDES, etc. Then I have to write a script that travels my website structure looking for content files (probably designated by an extension), and merging them with the template. To be honest, I could have done that myself with a couple of custom markers in the html files and a little routine to scour the pages for the markers, parse out the tag and shunt to a corresponding insertion routine. But I guess the moduloe has the advantage of lots of other functionality for the future... Forget that fear of gravity, Get a little savagery in your life.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||