Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: HTML::Template - loop order

by antirice (Priest)
on Aug 03, 2004 at 18:59 UTC ( [id://379788]=note: print w/replies, xml ) Need Help??


in reply to HTML::Template - loop order

First problem can be fixed by turning on loop_context_vars and using the following:

<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>

As for the second problem, I don't see another way around your problem beyond what you already have. The template is just presenting the data you gave it.

antirice    
The first rule of Perl club is - use Perl
The
ith rule of Perl club is - follow rule i - 1 for i > 1

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://379788]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-25 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found