http://www.perlmonks.org?node_id=433883


in reply to Re^2: Survey of Surveys on HTML Templating systems
in thread Survey of Surveys on HTML Templating systems

I don't get it, from the example you gave, seamstress requires a whole load of extra Perl code as well as a HTML template.

As for a mini-language it's almost non-existent. Petal's loops are very simple

<table> <tr tal:repeat="thing user/things"> <td tal:content="thing/name">Widgets </td>: <td tal:content="thing/count">10</td> </tr> </table>
this will produce one row for every element of $h->{user}->{things}.

That's as complex as you can get with loops. You just supply an array and Petal loops over it. This forces you to prepare all your data in advance and then just pump it into the template (although you can call methods as well as doing hash lookups so it's possible to lazily produce the data only as it's needed).