NAME

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

VERSION

version 0.101

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

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.