Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re^2: HTML::Template how to use IF/Else in a LOOP

by tinita (Parson)
on Jan 21, 2011 at 11:02 UTC ( #883507=note: print w/replies, xml ) Need Help??

in reply to Re: HTML::Template how to use IF/Else in a LOOP
in thread HTML::Template how to use IF/Else in a LOOP

and since one might avoid globals vars also in templates (I do): you might try HTML::Template::Compiled, where you can activate global vars partly (see "global_vars" in the OPTIONS section) - it allows you to "navigate" up the data structure, so <TMPL_VAR> will get you the var foo directly one level above (and 3 dots will go two levels up and so on (notice also that one dot goes to the root level, and for that you don't even need to set global_vars)).
  • Comment on Re^2: HTML::Template how to use IF/Else in a LOOP

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://883507]
[Eily]: I still don't understand how the Turkish AA fit into the German+Czech joke though :P
[LanX]: new Firefox + cb sidebar do random auto expand on submit
[LanX]: probably need to start pm discussion
[LanX]: they have a constitutional referendum in turkey, kind of "do you want a dictator" and everybody opting no gets problems ...
[Corion]: LanX: Random Auto Expand?
[Corion]: LanX: Well, everybody opting "yes" will also get problems. The question is more like "Do you want problems now or problems later?"
[LanX]: and the AA had posters with a big say NO with a small "to alcohol"
[ambrus]: LanX: is it the kind of free and secret vote where there's only one box you can check?

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2017-03-27 12:14 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (320 votes). Check out past polls.