HTML::EasyForm - Using the demon core to deliver a HTML orientated form management concept
version 0.101
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 => 'testform', fields => [ { name => 'testfield', notempty => 1, }, ], input_values => { testform => 1, testform_testfield => "test", }, session => $c->session, }); 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.