NAME

Text::FormBuilder - Parser for a minilanguage describing web forms


SYNOPSIS

    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;


DESCRIPTION

new

parse

build

write


LANGUAGE

    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),
        ...
    }

Directives

!pattern
!list
!title

Fields

Form fields are each described on a single line.

Comments

    # comment ...

Any line beginning with a # is considered a comment.


SEE ALSO

the CGI::FormBuilder manpage