If you want to output the closing </li> after having output the body of the element, don't output it above the body of the element.
[% FOREACH i IN item %] <li>[% i.name %]<!-- </li> --> [% IF i.children.size %] [% view.print(i.children.list) %] [% END %] </li> [% END %]
In reply to Re: Valid Nested Output
by Corion
in thread Valid Nested Output
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |