Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Perl and HTML

by davido (Archbishop)
on Dec 02, 2012 at 02:28 UTC ( #1006665=note: print w/replies, xml ) Need Help??

in reply to Perl and HTML

It sounds like you're looking for a templating system. HTML::Template will allow you to set up templates that are completed via Perl. You can even use HTML::Template to "include" templates from other files. That allows you to set up a framework template, a header template, a footer template, and so on, just pulling them all together as appropriate.

Eventually you may want to look at a more full featured framework such as Mojolicious (probably starting with a Mojolicious::Lite application). That provides templating, and a whole lot more. It helps to promote a separation of concerns (Model / View / Controller), which has become a fairly standard way of doing things, and certainly a "best practice."


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006665]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (12)
As of 2016-10-26 18:57 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (345 votes). Check out past polls.