HTML Expressions Gone Loopy #1
[? HTML_CMDS ul li a ?] [% ul { for ['Example One', 'Example Two' 'Example Three'] { li item } } %] --EOF--look inside...
Thus Spake Andy:
The nice thing about being able to integrate these commands into TT3
(rather than using an entirely separate markup language like HAML, for
example) is that you can mix them up with any other commands. This
example shows us generating HTML tags using a for
loop.