- or download this
$ cat recurse.tt2
[% BLOCK recurse %]
[% META name = 'my file' -%]
...
[% FOREACH variable IN [ 6, 7, 9 ] %]
The variable is set to [% variable %]
[% END %]
- or download this
$ tpage recurse.tt2
...
The variable is set to 9
- or download this
#---------------------------------------------------------------------
+---
# Compiled template generated by the Template Toolkit version 2.22
#---------------------------------------------------------------------
+---
...
}
);