Don't ask to ask, just ask | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
We hear about it all the time, and most, if not all of us have dabbled in it at one time. You know what I speak of, Dynamic web content. Well, if you prefer, or are required to use a template system, might I suggest giving HTML::Template a go. Some may ask my main reason for endorsing it, to which I would respond with simplicity, and flexibility. Hands down, HTML::Template gotta be the simplest way to manage templates. Lets give an example.
Taken from the CPAN docs HTML::Template:
Create a simple HTML page, with two template variables HOME and PATH, name it test.tmpl.
Now, lets build a program to fill in those previously named variables. The result is displayed below
Make sure its all ready to go, then point your browser to the script you just created, now, you should have output that looks kinda like this:
Simple, no? It Gets Better Not only does it support simple variables, you can also:
I'm not going into much more detail here, I like to keep it simple, just know that I have found it useful. Paired with CGI, DBD::mysql, CGI::Session, and various others, I've been able to create powerful web applications. Another note, I feel that the module is newbie friendly, as I myself is a newb ;-). Further info can be found on CPAN, and the docs are very easy to read. So far, I have no displeasures with this module, please, reply with your opinions. Thanks, DeFyance In reply to HTML::Template by defyance
|
|