Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

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."


Comment on Re: Perl and HTML

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 romping around the Monastery: (7)
As of 2015-12-02 05:15 GMT
Find Nodes?
    Voting Booth?

    My keyboard shows this many letters:

    Results (34 votes), past polls