I wanted to use HTML::Template for this project for the specific reason that I expect it to be used by people who understand HTML but don't do programming. That's exactly the situation HTML::Template was created to handle.
----
send money to your kernel via the boot loader.. This and more wisdom available from Markov Hardburn.
| [reply] |
Hmmm, that is exactly the situation Template Toolkit was created to handle too. It has functionally equivalent syntax for all of the tags you are using. The only additional part would be telling it which file to load the data from:
[% USE mydata = datafile('/path/to/datafile') %]
That piece could be stuffed into an Apache::Template subclass or a master template if it looks too scary. | [reply] [d/l] |
That sounds like you're confusing layout vs. content. I would assume you'd have 2-3 templates and 200-300 different documents. Maybe a template for press releases, another for FAQs, etc.
I would think you'd be creating the templates once and editing them rarely, if ever. The content will be provided, probably, by someone who knows nothing about the web, including HTML. (In fact, it's very likely that a Word document would be provided ...)
------
We are the carpenters and bricklayers of the Information Age.
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
I shouldn't have to say this, but any code, unless otherwise stated, is untested
| [reply] |
Would you mind providing a short tutorial with a basic example? I'm a novice to TT and would love to provide this for the marketing group (so we don't have to manually add all the press releases).
------
We are the carpenters and bricklayers of the Information Age.
Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose
I shouldn't have to say this, but any code, unless otherwise stated, is untested
| [reply] |
There's a tutorial about how to generate a tree of static pages in a Makefile-like way here. There's more documentation in the modules I mentioned. You can also buy the very comprehensive O'Reilly book (or read it on their Safari service).
| [reply] |
| [reply] |