punch_card_don has asked for the wisdom of the Perl Monks concerning the following question:
On advice from other Monks in another thread, I'm reading all about Template::Toolkit. Very nice so far, but I wanted to check that I'm grasping the concepts and ramificiations.
http://www.devshed.com/c/a/Perl/Building-a-Complete-Website-using-the-Template-Toolkit/3/
This tutorial mentions:
The tpage program is fine for processing single templates, but isn’t really designed to handle the many pages that comprise a typical web site. For this, ttree is much more appropriate. It works by drilling down through a source directory of your choosing, looking for templates to process. The output generated is saved in a corresponding file in a separate destination directory.
But I don't have a million different templates. I'll have one or two templates to fill with hundreds of different contents. What I've got to start with is hundreds of content pages that I want to merge with a layout template to produce finished web pages. The above tutorial makes it sound backwards to me.
Next is how this is run. It speaks opf running tpage or ttree from the command line to generate pages that are stored as static html on the server. The pre-generating static html sounds great. But in this age of do-it-yourself web authors, I can hardly ask office staff who are authoring content to telnet into the server to run this everytime they make a change to their content page. Way too cumbersome.
Is there not some way to do this automatically?
Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Learning Template::Toolkit - have I understood?
by imp (Priest) on Aug 30, 2006 at 12:36 UTC | |
|
Re: Learning Template::Toolkit - have I understood?
by Khen1950fx (Canon) on Aug 30, 2006 at 09:05 UTC | |
|
Re: Learning Template::Toolkit - have I understood?
by punch_card_don (Curate) on Aug 30, 2006 at 13:59 UTC | |
by perrin (Chancellor) on Aug 30, 2006 at 17:07 UTC | |
by Asim (Hermit) on Aug 30, 2006 at 14:57 UTC | |
|
Re: Learning Template::Toolkit - have I understood?
by dtr (Scribe) on Aug 30, 2006 at 13:14 UTC |