in reply to Tag filtering: a standard mechanism?
Again, that code is from the documentation, I just cut and pasted it.In the template: <TMPL_LOOP NAME=EMPLOYEE_INFO> Name: <TMPL_VAR NAME=NAME> <P> Job: <TMPL_VAR NAME=JOB> <P> <P> </TMPL_LOOP> In the script: $template->param(EMPLOYEE_INFO => [ { name => 'Sam', job => 'programmer' }, { name => 'Steve', job => 'soda jerk' }, ] ); print $template->output(); The output: Name: Sam <P> Job: programmer <P> <P> Name: Steve <P> Job: soda jerk <P> <P>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Tag filtering: a standard mechanism?
by thpfft (Chaplain) on Sep 13, 2001 at 13:59 UTC |