HTML::EasyForm - Using the demon core to deliver a HTML orientated form management concept
version 0.100
In your Template::Toolkit configuration:
use HTML::EasyForm; ... INCLUDE_PATH => [ MyApp->path_to('templates'), HTML::EasyForm->template_tt_dir, ], ...
In your favorite web framework:
$c->stash->{form} = HTML::EasyForm->easy({ name => 'test', fields => { name => { notempty => 1, widget => 'text', label => 'Name of new site', }, }, input_values => $c->req->params, }); if (my $result = $c->stash->{form}->result) { ... do stuff with $result ... }
In your template (suggesting the form is assigned as form):
<@ PROCESS form.tt @>
or:
<@ PROCESS form.tt form=other_form @>
IRC
Join #demoncore on irc.perl.org.
Repository
http://github.com/Getty/p5-html-easyform Pull request and additional contributors are welcome
Issue Tracker
http://github.com/Getty/p5-html-easyform/issues
Torsten Raudssus <torsten@raudssus.de>
This software is copyright (c) 2011 by Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install HTML::EasyForm, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::EasyForm
CPAN shell
perl -MCPAN -e shell install HTML::EasyForm
For more information on module installation, please visit the detailed CPAN module installation guide.