Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: Best practices: Generating HTML content

by dsheroh (Monsignor)
on Dec 26, 2017 at 10:09 UTC ( [id://1206194]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Best practices: Generating HTML content
in thread Best practices: Generating HTML content

Does the larger project involve "larger chunks of code", of the sort you've moved to templates for? Probably.

Does the larget project, therefore, use templates? Hopefully.

If so, then using the same templating system in this module as in the larger project isn't pulling in anything new, it's just using what will already be loaded as a part of the overall project.

And, if not, I wouldn't let that stop me from maintaining a clean separation of concerns by using templates in the module anyhow. On the contrary, I'd start with templates in the module, since that appears to be where you're currently writing new code, then expand from there until all of the HTML content in the entire project is produced using templates instead of coming from mixed HTML and Perl frankencode.

  • Comment on Re^3: Best practices: Generating HTML content

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (2)
As of 2024-04-24 23:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found