Text::FormBuilder

Text::FormBuilder is a Perl module that can create CGI::FormBuilder objects from simple text descriptions.
Download

Text::FormBuilder Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Peter Eichman
  • Publisher web site:
  • http://search.cpan.org/~peichman/Text-FormBuilder-0.12/lib/Text/FormBuilder.pm

Text::FormBuilder Tags


Text::FormBuilder Description

Text::FormBuilder is a Perl module that can create CGI::FormBuilder objects from simple text descriptions. Text::FormBuilder is a Perl module that can create CGI::FormBuilder objects from simple text descriptions.SYNOPSIS use Text::FormBuilder; 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->form; # write a My::Form module to Form.pm $parser->write_module('My::Form');This module is intended to extend the idea of making it easy to create web forms by allowing you to describe them with a simple langauge. These formspecs are then passed through this module's parser and converted into CGI::FormBuilder objects that you can easily use in your CGI scripts. In addition, this module can generate code for standalone modules which allow you to separate your form design from your script code.A simple formspec looks like this: name//VALUE email//EMAIL langauge:select{English,Spanish,French,German} moreinfo|Send me more information:checkbox interests:checkbox{Perl,karate,bass guitar}This will produce a required name test field, a required email text field that must look like an email address, an optional select dropdown field langauge with the choices English, Spanish, French, and German, an optional moreinfo checkbox labeled ``Send me more information'', and finally a set of checkboxes named interests with the choices Perl, karate, and bass guitar. Requirements: · Parse::RecDescent · CGI::FormBuilder · Text::Template · Class::Base · Perl


Text::FormBuilder Related Software