Query: html::formhandler::render::withtt
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
HTML::FormHandler::Render::WithTT(3pm) User Contributed Perl Documentation HTML::FormHandler::Render::WithTT(3pm)NAMEHTML::FormHandler::Render::WithTT - tt renderingVERSIONversion 0.40013SYNOPSISA 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; If you want to render with TT, you don't need this role. Just use one of the TT form templates provided, form.tt or form_in_one.tt. If you use this role to render, you are using two different TT engines, with different sets of variables, etc, which doesn't make much sense. This is mainly useful as a testing aid and an example of using the sample templates.DESCRIPTIONUses 'tt_render' instead of 'render' to allow using both TT templates and the built-in rendering.AUTHORFormHandler Contributors - see HTML::FormHandlerCOPYRIGHT AND LICENSEThis software is copyright (c) 2012 by Gerda Shank. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-06-25 HTML::FormHandler::Render::WithTT(3pm)
Similar Topics in the Unix Linux Community |
---|
Perl: Variable input via HTML |
nanon 0.1 (Default branch) |
NaSMail 1.5 (Default branch) |
Scriptable Form Editor 1 (Default branch) |
Html?? |