1HTML::FormHandler::RendUesre:r:WCiotnhtTrTi(b3u)ted PerlHTDMoLc:u:mFeonrtmaHtainodnler::Render::WithTT(3)
2
3
4

NAME

6       HTML::FormHandler::Render::WithTT - tt rendering
7

VERSION

9       version 0.40068
10

SYNOPSIS

12       A rendering role for HTML::FormHandler that allows rendering using
13       Template::Toolkit
14
15          package MyApp::Form;
16          use HTML::FormHandler::Moose;
17          extends 'HTML::FormHandler';
18          with 'HTML::FormHandler::Render::WithTT';
19
20          sub build_tt_template { 'user_form.tt' }
21          sub build_tt_include_path { ['root/templates'] }
22          ....< define form >....
23
24          my $form = MyApp::Form->new(
25          $form->tt_render;
26
27       If you want to render with TT, you don't need this role. Just use one
28       of the TT form templates provided, form.tt or form_in_one.tt.  If you
29       use this role to render, you are using two different TT engines, with
30       different sets of variables, etc, which doesn't make much sense.
31
32       This is mainly useful as a testing aid and an example of using the
33       sample templates.
34

DESCRIPTION

36       Uses 'tt_render' instead of 'render' to allow using both TT templates
37       and the built-in rendering.
38

AUTHOR

40       FormHandler Contributors - see HTML::FormHandler
41
43       This software is copyright (c) 2017 by Gerda Shank.
44
45       This is free software; you can redistribute it and/or modify it under
46       the same terms as the Perl 5 programming language system itself.
47
48
49
50perl v5.28.1                      2017-07-2H0TML::FormHandler::Render::WithTT(3)
Impressum