Re: [htmltmpl] need to define html::template from the following hash
Brought to you by:
samtregar
From: Carl F. <fir...@gm...> - 2005-11-04 14:09:55
|
You can't change a tempate according the the_value_ of a variable, however you could change your hash structure from hash1=3D>{ type =3D>"text", ... }, hash2=3D>{ type=3D>"dropdown", ... } To something more like hash1=3D>{ text =3D> 1, ... }, hash2=3D>{ dropdown =3D> 1, ... } And then in the template something like <TMPL_IF text> ... </TMPL_IF> <TMPL_IF dropdown> ... </TMPL_IF> Carl |