in reply to HTML::Template - loop order
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>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: HTML::Template - loop order
by tinita (Parson) on Aug 03, 2004 at 18:49 UTC | |
by ccn (Vicar) on Aug 03, 2004 at 19:02 UTC | |
by tinita (Parson) on Aug 04, 2004 at 07:52 UTC |