by riffraff · 13y ago · 0 comments
I would be led to understand, given your comments, that Heist does not allow control structures in the templates, but looking at some snap code[0] it would seem iteration is right there. Which makes sense I guess.
Or am I missing something, and there is a fundamental difference between Heist's
<posts:reverseChronological>
<a href="${post:url}">stuff</a>
</posts:reverseChronological>
and, say, Genshi's <a py:for="post in reverseChronological" href="${post:url}">stuff</a>
Is the difference, and thus your preference, in the fact that posts:reverseChronological works more like a function call taking the content as argument, rather than a "classic" loop?[0] https://github.com/snapframework/snap-website/blob/master/bl...
I don't think it is. To me it is just the haskell template engine in that style (which is the style I prefer). That style of template engine is the minority, so most comparisons are vs either mixed style (php/asp/jsp/rails) or vs custom syntaxes (mustache, haml, etc). What is good about heist certainly applies to similar template engines like lifts, zopes, etc.