If you look at the files returned by rep, like t/render.t, you can see its through naming convention.
has_field 'start_date' => ( type => 'DateTime' ); has_field 'start_date.month' => ( type => 'Integer', range_start => + 1, range_end => 12 ); has_field 'start_date.day' => ( type => 'Integer', range_start => 1 +, range_end => 31 ); has_field 'start_date.year' => ( type => 'Integer', range_start => +2000, range_end => 2020 );
generates
<div><fieldset class="start_date"><legend>Start date</legend> <div><label class="label" for="start_date.month">Month: </label><input + type="text" name="start_date.month" id="start_date.month" size="8" v +alue="7" /></div> <div><label class="label" for="start_date.day">Day: </label><input typ +e="text" name="start_date.day" id="start_date.day" size="8" value="14 +" /></div> <div><label class="label" for="start_date.year">Year: </label><input t +ype="text" name="start_date.year" id="start_date.year" size="8" value +="2006" /></div> </fieldset></div>
See also t/compound_field.t is example of HTML::FormHandler::Field::Compound

Does that makes sense?

From your example I can't tell what you want to become legend/fieldset. If you could explain that, then it might become clear if HTML::FormHandler needs patching, or if you need to create your own renderer or something else :)

FWIW, fieldset/legend doesn't look all that useful to me


In reply to Re^3: HTML::FormHandler rendering by Anonymous Monk
in thread HTML::FormHandler rendering (somewhat SOLVED) by CountZero

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.