i only want one pipe | between the items, like in perl join
turn on loop_context_vars and use __last__
<TMPL_VAR NAME=ID>: <TMPL_VAR NAME=NAME><br> <TMPL_LOOP NAME=CATEGORIES> <TMPL_VAR NAME=ID>/<TMPL_VAR NAME=TITLE> <TMPL_UNLESS NAME=__last__>|</TMPL_UNLESS> </TMPL_LOOP>
In reply to Re: HTML::Template - loop order
by ccn
in thread HTML::Template - loop order
by tinita
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |