Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: HTML::Template macros

by thraxil (Prior)
on Dec 05, 2003 at 04:51 UTC ( #312427=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub selectify {
        my $values = shift;
    ...
             }
        } @{$values}];
    }
    
  2. or download this
    $template->param(foo_loop => selectify(\@values,\@labels,\@selected));
    
  3. or download this
    <select name="foo">
    <tmpl_loop name="foo_loop">
    ...
      </option>
    </tmpl_loop>
    </select>
    
  4. or download this
    <select name="foo">
    <tmpl_loop name="foo_loop">
      <tmpl_include name="option.tmpl">
    </tmpl_loop>
    </select>
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2014-10-23 04:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (123 votes), past polls