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?? |
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
In Section
Seekers of Perl Wisdom
|
|