Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

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


Dave


Comment on Re: Perl and HTML

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (13)
As of 2014-08-29 15:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (281 votes), past polls