Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Use perl CGI to create <a href="url" target="t">text</a>?

by Anonymous Monk
on Jun 08, 2022 at 20:41 UTC ( [id://11144530]=note: print w/replies, xml ) Need Help??


in reply to Re: Use perl CGI to create <a href="url" target="t">text</a>?
in thread Use perl CGI to create <a href="url" target="t">text</a>?

Nowadays, we usually use templates to generate HTML (Template::Toolkit, Text::Xslate). Going back to print is not the right way.

a template by any other name ;)

since it started in ~1995 it didn't take a lot of work with "CGI::HTML::Functions" to find bugs, then check the bug cue/Changes, and realize bugs remain and reappear way too frequently to be relied upon, so you start writing your own functions and soon

soon you turn it into heredocs with escapeHTML... There is a reason a diy templating engine is a rite of passage

  • Comment on Re^2: Use perl CGI to create <a href="url" target="t">text</a>?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2024-04-25 19:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found