Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

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.

Perl-based

HTML::Zoom
written by Matt S Trout. similar to Template::Semantic but with more streaming capabilities
HTML::Seamstress
based on HTML::TreeBuilder
Template::Replace
author is aware of push-style templating. Similar to Template::Simple by Uri Guttman.
Nes
by Skriptke
Cindy
by Joachim Zobel (monk name: ElDiabolo)
Template::Semantic
inspired by Template::Refine and very similar to Amrita
Template::Recall
by James Robson.. string-based.
Template Power
Perl port of the PHP package
HTML::Template
by Sam Tregar string-based. Using the optional HTML::Template::Expr raises the entanglement index.
HTML::TagTree
pure perl html generation
Text::Caml
by Viacheslav Tykhanovskyi. Similar to Mustache
Template::Flute
by Stefan Hornburg
HTML::Transmorgify
by David Muir Sharnoff
Text::Haml and Text::Sass
based on the ruby HAML HTML shortcut language and SASS shortcut languages.
CGI::FastTemplate
by Jason Moore.. string-based. The authors Perl module site (linked from his CPAN page) is currently down.
ZM::Template
by Maxim Kashliak
XML::Twig or XML::Rules or even XML::LibXML
if you are into strict xHTML, you might like these
HTML::Chunks
had brief friendly conversation with author

Language-Neutral

Python-based

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

Java-based

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!

Javascript

  1. Shibari.js
  2. HOE.js
  3. jQuery's Taconite
  4. Plates
  5. Sizlate

Haskell

  1. Heist

Ruby

summary review of ruby template systems
module comments
Amrita
Ruby on Rails Through the AJAX interface, dom style rewrites are possible
KWARTZ

PHP

  • Template Power definitely push-style.. theres also a Perl version
  • Smarty is the earliest PHP push-style approach.
  • Dwoo is an "evolution" of smarty
  • KoolPHP is an AJAX library that definitely is push-style
  • XmlTag is an html generation module for PHP, one of several. The author lists others.

Prolog-based

Prolog Well-Formed Pages by Richard O'Keefe

In reply to Push style templating systems by metaperl

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • 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, 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, 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others chanting in the Monastery: (7)
    As of 2017-04-23 11:32 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      I'm a fool:











      Results (430 votes). Check out past polls.