Re: need to define html::template from the following hash

Carl Franks <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.html-template
Message-ID <[email protected]>
You can't change a tempate according the the_value_ of a variable,
however you could change your hash structure from

hash1=>{
  type =>"text",
  ...
},
hash2=>{
  type=>"dropdown",
  ...
}

To something more like

hash1=>{
  text => 1,
  ...
},
hash2=>{
  dropdown => 1,
  ...
}

And then in the template something like

<TMPL_IF text>
 ...
</TMPL_IF>

<TMPL_IF dropdown>
  ...
</TMPL_IF>


Carl


-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.