in reply to TMPL_LOOP within a TMPL_LOOP

jeffa's answer above is correct, but I'd like to suggest an alternative: use CGI.pm's popup_menu (or scrolling_list) method to populate a <tmpl_var>. This is addressed in more detail in the HTML::Template FAQ - question number 11.

-sam

Replies are listed 'Best First'.
(jeffa) 2Re: TMPL_LOOP within a TMPL_LOOP
by jeffa (Bishop) on Apr 30, 2002 at 06:59 UTC
    Ya know ... this really is a smart way to do it. Thanks for bringing it up. Personally, i don't think this violates the golden rule of separation because a <select> is a <select> is a <select>, and they can be a real pain to create with <tmpl_loop>'s. samtregar++ :)

    jeffa

    L-LL-L--L-LL-L--L-LL-L--
    -R--R-RR-R--R-RR-R--R-RR
    B--B--B--B--B--B--B--B--
    H---H---H---H---H---H---
    (the triplet paradiddle with high-hat)