Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^4: When to use templates?

by MidLifeXis (Monsignor)
on Nov 19, 2004 at 19:56 UTC ( #409143=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # In the perl
    $template->param(SHOULD_I_DISPLAY_THIS => ($foo + $bar) > 2);
    -------
    <!-- In the template -->
    <TMPL_IF SHOULD_I_DISPLAY_THIS>this</TMPL_IF>
    
  2. or download this
    <TMPL_IF EXPR="(FOO + BAR) > 2">this</TMPL_IF>
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2015-07-29 05:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls