views:

65

answers:

1

I have grown tired of all the little issues with paste template, it's horrible to maintain the templates, it has no way of updating an old project and it's very hard to test.

I'm wondering if someone knows of an alternative for quickstart generators as they have proven to be useful.

A: 

I haven't used paste templates, so I'm not sure how it compares, but Mako seems like a fairly good system.

A snippet of the template language from their front page:

<%inherit file="base.html"/>
<%
    rows = [[v for v in range(0,10)] for row in range(0,10)]
%>
<table>
    % for row in rows:
        ${makerow(row)}
    % endfor
</table>

<%def name="makerow(row)">
    <tr>
    % for name in row:
        <td>${name}</td>\
    % endfor
    </tr>
</%def>
cobbal
See the above comment. My problem is with the tool that uses the templates rather than the template code itself.
Jorge Vargas