Pipeline" in my essay means that the code is in charge of control flow rather than the template. In a callback style, decisions about what do next are in the template. Seamstress is pipeline.
Seamstress is
push-style. Every other system on CPAN, whether callback or pipeline, is pull-style...
oops! Template::Recall is push-style also. I have had little success in trying to email the author to chat
Petal embeds a programming language in XML files.
haha! told you
fergal (grin).
HTML_Tree and Seamstress and XMLC all use ID and CLASS attributes to specify parts of an HTML file to replace or modify without embedding loops or conditionals in the template itself.
I see where you are coming from
- they all only use Perl and HTML (no mini-language).
- There is no embedding in the template.
I have some comments on your article, having read it closely:
HTML::Template is fairly rigid about insisting on a pipeline approach. It doesn't provide methods for calling back into Perl code during the HTML formatting stage; you have to do the work before running the template. The author of the module consider this a feature since it prevents developers from cheating on the separation of application code and presentation.
You might mention that
HTML::Template::Expr adds callback support for HTML::Template.
There is a third approach, based on parsing an HTML document into a DOM tree and then manipulating the contents of the nodes. The only module using this approach is HTML_Tree.
That is not true. Seamstress does that. In fact Seamstress is on CPAN and maintained. HTML_Tree cant claim either of these things.
(said about HTML_Tree)
This allows it to use genuine valid HTML documents as templates, something which none of these other modules can do.
You mention Petal in your survey. It (and Seamstress) certainly guarantees this. HTML::Template and tt have support for changing the template delimeter to an HTML comment, which might help.
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.