easy-template-x
Advanced tools
Changelog
This version introduces the notion of "tag options". These options are controlled through the template and are useful for situations where we want to allow the template author to use the same data in different ways. For instance, if we have a collection in the data and we want to allow the template author to use this collection inside a table to either produce multiple rows or in order to expand the collection inside a single table cell. In this case, the template author will be able to specify either {# my collection [loopOver: "row"]}
or {# my collection [loopOver: "content"]}
to control the resulting outcome.
{tag name [options]}
. E.g. {# Students [loopOver: "rows"]}
.
[[ options ]]
instead of [ options ]
).loopOver
tag option, to control loop behavior in tables, as explained above.