Push-style templating was defined by Terence Parr has in his seminal article. He also articulated the benefits of push-style templating, as well as defined the requirements for a system to be called as such. If the above paper seems a bit dense, there is now an HTML Template Entanglement survey which simplifies the criteria for a templating system to be push-style. HINT: JSP, Template Toolkit, HTML::Mason, Genshi, Mako, and pure PHP do not qualify as push-style systems. Those packages are an invitation to create Tag Soup, something that is impossible with push-style templating. The goal of this node is to record push-style templating systems, across languages. James Robson recently published an article on perl.com about his module Template::Recall which is similar to HTML::Seamstress.
A good discussion of Python-based solutions occurred recently. And there have been others. One important thing that came out that thread is that my list of templating systems can be found here under "Engines with Annotated Templates".
It should also be noted that the Nagare web framework has updated meld3 with some enhancements.
| name | comments |
|---|---|
| Muntjac | completely abstracts the client-side templating |
| Web elements | Powerful. Concise. |
| meld3 | based on elementTree |
| wt | clean simple powerful system |
| Templess | based on nanosax |
| Webstring | uses elementTree or lxml underneath |
| HTMLTemplate | HTMLParser |
| PyMeld | internal |
| module | comments |
|---|---|
| XMLC | There is an Addison-Wesley text which documents this DOM-based module. |
| StringTemplate | written by Terence Parr. Has Python and C# implementations as well. |
| JABHTS | very well thought-out thesis project |
| Apache Tapestry | A framework whose non-pluggable template system is push-style... I thought push-style was all about separation! |
| module | comments |
|---|---|
| Amrita | |
| Ruby on Rails | Through the AJAX interface, dom style rewrites are possible |
| KWARTZ |
In reply to Push style templating systems by metaperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |