in reply to HTML::Template - loop order

first thing is: i only want one pipe | between the items, like in perl join " | ", @$items.

<TMPL_VAR NAME=ID>: <TMPL_VAR NAME=NAME><br> <TMPL_LOOP NAME=CATEGORIES> <TMPL_VAR NAME=ID>/<TMPL_VAR NAME=TITLE><TMPL_UNLESS __last__> | </TMP +L_UNLESS> </TMPL_LOOP>

i'd like to be able to control the order of the items from the template (reason: the code is part of a kind of framework or CMS, and i don't want to hardcode it).

From my quick skimming of docs, that doesn't seem possible. Personally, I use the Template Toolkit II for all my templating needs.

Makeshifts last the longest.

Replies are listed 'Best First'.
Re^2: HTML::Template - loop order
by tinita (Parson) on Aug 03, 2004 at 18:51 UTC
    thanks, too.
    i think someday i have to look at other templating systems anyway, so maybe i've got time to switch to tt2.