NAME

HTML::EasyForm - Using the demon core to deliver a HTML orientated form management concept

VERSION

version 0.100

SYNOPSIS

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 @>  

SUPPORT

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

AUTHOR

Torsten Raudssus <torsten@raudssus.de>

COPYRIGHT AND LICENSE

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.