Text::FormBuilder - Parser for a minilanguage describing web forms
my $parser = Text::FormBuilder->new; $parser->parse($src_file); # returns a new CGI::FormBuilder object with the fields # from the input form spec my $form = $parser->build_form;
name[size]|descriptive label[hint]:type=default{option1(display string),option2(display string),...}//validate !title ... !pattern name /regular expression/ !list name { option1(display string), option2(display string), ... }
!pattern
!list
!title
Form fields are each described on a single line.
# comment ...
Any line beginning with a #
is considered a comment.