4 ms·
Live isn't always that simple. For example sometimes you get a piece of HTML that you have to include verbatimely for policital reasons (ad banners come to min
by perlgeek 15y ago
Live isn't always that simple.
For example sometimes you get a piece of HTML that you have to include verbatimely for policital reasons (ad banners come to mind that need to be included character by character because of the Terms of Service - see AdSense for example).
In that case you really need an option for direct, unescaped HTML inclusion.
Or you might need to hilight the a syntax that's hard to parse, and the only available hilighter spits out HTML pieces instead of parse trees.
My point is that a template system should be able to deal with such realities, and it doesn't make it "fundamentally broken".
- nasmorn 15y agoAlso while you can build a company on the motto "People feeling uncomfortable with a HTML generation library have no business adding a list tag somewhere" there are certainly cases where it makes sense for them to do so.