![]() |
![]()
| ![]() |
![]()
NAMEHTTP::Engine::Middleware::FillInForm - fill-in-form stuff SYNOPSISmy $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(); AUTHORSTokuhiro Matsuno SEE ALSOHTML::FillInForm
|