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.