I know this is not comme-il-faut, but I have increasingly come to detest templating toolkits myself. If you can get your HTML-monkeys to maintain your templates for you, they're probably great. However, I suspect this is quite often a red herring. At least of I the projects I do involving web stuff only a very few come with ready-to-use HTML-monkeys at my beck and call. And if I still have to maintain my templates myself, why, oh why, should I maintain them in the unholy format that is HTML? And passing data to a templating toolkit -- don't get me started. You either adjust your wonderful controller code the the templating toolkits idea of control and data structures with a sledgehammer, or you (
shudder) embed Perl code in your HTML templates.
(I detest CGI.pm, too, it's not just templating toolkits. It's one of the things I'm good at. Detesting.)
Lately, I've started to tinker with doing HTML in Perl. It's rather fun, actually. I do thinks like:
body {
div {
{ class => 'content' },
q{Text content},
table {
{ width => '100%' },
row {
cell {
...
},
cell {
...
}
}
}
}
}
While I can still separate controller and view, now I'm able to code my view in a sensible syntax, and I can pass stuff back and forth without feeling cuffed and gagged. This is still an experiment, so I'm not sure if it's really a good idea, but it's refreshing.
(Ok, so this doesn't really answer your question at all. Sice the templating guys are bound to do so though, I just thought I'd share. Sorry.)
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.