|Think about Loose Coupling|
HTML::Templateby defyance (Curate)
|on Mar 24, 2003 at 18:32 UTC||Need Help??|
Item Description: A great module for creating HTML templates.
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
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.