[Templates] Variable interpolation question

Dave Hodgkinson daveh@davehodgkinson.com
03 Sep 2002 15:31:49 +0100


"Dennis Daupert" <ddaupert@csc.com> writes:

> and he bombs out. Obviously I can't nest the
> interpolation signs -- [% %] -- but what should I use
> instead when I have a var that needs to be interpolated
> into a context which itself is interpolated?

Something like this perhaps?


      <td align="right">Sector: </TD>
      <TD>[%
	q.popup_menu({ Name => 'sector_id'
	       Values => sector.keys.nsort
	       Default => "${params.sector_id}"
	       Labels => sector  } ) %] 
      </TD>




-- 
Dave Hodgkinson, Wizard for Hire         http://www.davehodgkinson.com
Editor-in-chief, The Highway Star        http://www.thehighwaystar.com
   Interim Technical Director, Web Architecture Consultant for hire