in reply to Re: HTML::Template recalling selected dropdown options
in thread HTML::Template recalling selected dropdown options
Thanks, I did consider this, but I have this "thing" about keeping as much of the HTML as possible on the HTML side (but even Sam himself doesn't have this hang-up, and I quote from the H::T doc:
"To some people this smacks of mixing HTML and code in a way that they hoped HTML::Template would help them avoid. To them I’d say that HTML is a violation of the principle of separating design from programming. There’s no clear separation between the programmatic elements of the <form> tags and the layout of the <form> tags. You’ll have to draw the line somewhere - clearly the designer can’t be entirely in charge of form creation. It’s a balancing act and you have to weigh the pros and cons on each side. It is certainly possible to produce a <select> element entirely inside the template. What you end up with is a rat’s nest of loops and conditionals. Alternately you can give up a certain amount of flexibility in return for vastly simplifying your templates. I generally choose the latter."
I guess if popup_menu() can help me avoid the mess of javascript/html/Perl then it might be worth a closer look.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: HTML::Template recalling selected dropdown options
by Hero Zzyzzx (Curate) on May 12, 2005 at 13:49 UTC |