[Dancer-users] Dancer::Forms

T. Linden tom at linden.at
Wed Jan 11 20:51:59 CET 2012


Ok, Dancer::Plugin::HTML::FormsDj is on pause as well. Using it looks
like this:

formsdj '/addbook' => {
    field => {
	title   => {
	    type     => 'text',
	    validate => { # some constraint },
	    required => 1,
	},
	author  => {
	    type     => 'text',
	    validate => sub { # some constraint },
	    required => 1,
	},
    },
    name     => 'registerform',
    csrf     => 1,
    save     => sub { return; },
    template => 'addbook',
    redirect => '/booklist'
}; 

That's all about it.



best regards,
Tom


More information about the Dancer-users mailing list