Forums / Developer / Template system / Comment69150
Daniel A. Øien
Thursday 30 June 2011 11:27:10 pm
Also, it is not so readable ( at least, from my point of view, $counter++ is a lot easier to read than {set $counter = $counter|sum(1)} )
{set $counter = $counter|inc()} is more natural to use, but of course nearly as verbose since there aren't any shorthand assignment operators in the template language.
I mention this because the template language has quite a lot of basic functions if you wade through the documentation long enough :)
Daniel A. Øien Open Concept SA, Norway Web: http://openconcept.no/ In English: http://openconcept.no/eng