HTML::FormHandler::Render::WithTT
Warning: this feature is not quite ready for prime time. It has not been well tested and the template widgets aren't complete. Contributions welcome.
A rendering role for HTML::FormHandler that allows rendering using Template::Toolkit
package MyApp::Form; use HTML::FormHandler::Moose; extends 'HTML::FormHandler'; with 'HTML::FormHandler::Render::WithTT'; sub build_tt_template { 'user_form.tt' } sub build_tt_include_path { 'root/templates' } ....< define form >.... my $form = MyApp::Form->new( $form->tt_render;
Uses 'tt_render' instead of 'render' to allow using both TT templates and the built-in rendering.
To install HTML::FormHandler, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::FormHandler
CPAN shell
perl -MCPAN -e shell install HTML::FormHandler
For more information on module installation, please visit the detailed CPAN module installation guide.