Kazuhiro Osawa > HTTP-Engine-Middleware-0.16 > HTTP::Engine::Middleware::FillInForm

Download:
HTTP-Engine-Middleware-0.16.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source   Latest Release: HTTP-Engine-Middleware-0.17

NAME ^

HTTP::Engine::Middleware::FillInForm - fill-in-form stuff

SYNOPSIS ^

    my $mw = HTTP::Engine::Middleware->new;

    $mw->install('HTTP::Engine::Middleware::FillInForm');
    # or
    $mw->install(
        'HTTP::Engine::Middleware::FillInForm' => {
            autorun_on_post => 1
        }
    );

    HTTP::Engine->new(
        interface => {
            module => 'YourFavoriteInterfaceHere',
            request_handler => $mw->handler(
                sub {
                    HTTP::Engine::Response->new(
                        body => '<form><input type="text" name="foo" /></form>'
                    )->fillin_form()  # when no args, fill-in-form from request params.
                    # or
                    HTTP::Engine::Response->new(
                        body => '<form><input type="text" name="foo" /></form>'
                    )->fillin_form({'foo' => 'bar'})
                }
            ),
        }
    )->run();

AUTHORS ^

Tokuhiro Matsuno

SEE ALSO ^

HTML::FillInForm