HTML-Template

 view release on metacpan or  search on metacpan

lib/HTML/Template/FAQ.pm  view on Meta::CPAN

function. Then you can do awful stuff like:

    <tmpl_var expr="run_program('foo.pl')">

Just, please, don't tell me about it. I'm feeling guilty enough just
for writing L<HTML::Template::Expr> in the first place.

=head2 What's the best way to create a <select> form element using HTML::Template?

There is much disagreement on this issue. My personal preference is
to use L<CGI.pm>'s excellent C<popup_menu()> and C<scrolling_list()>
functions to fill in a single C<< <tmpl_var select_foo> >> variable.

To some people this smacks of mixing HTML and code in a way that
they hoped L<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 C<< <form> >> tags and the layout of the C<< <form>
>> tags.  You'll have to draw the line somewhere - clearly the designer
can't be entirely in charge of form creation.



( run in 1.388 second using v1.01-cache-2.11-cpan-364913b4093 )