Hello again.
My question is to those familiar with Dancer2 (and Template Toolkit.) I'm new to these, as I am considering them as migration tools from CGI. I've been looking for information on how are classic form elements (e.g., radio groups, pull-down menus, check boxes, etc.) implemented. I have been unsuccessful in finding any examples. I am particularly interested in those that are dynamically populated with options from a database, a hash, or some other data structure.
For example, using CGI one would write:
my $menu = popup_menu(-name=>'menu_name',
-values=>['eenie','meenie','minie'],
-default=>['meenie','minie'],
-labels=>\%labels,
-attributes=>\%attributes);
print $menu;
The content of the variable
$menu could also then be used to fill a template "on-the-fly".
Anyway, any suggestions or references to where I could glean such info would be greatly appreciated.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.