Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
HTML::FormHandler::RenUser:Contributed PerHTML::FormHandler::Render::WithTT(3)

NAME
       HTML::FormHandler::Render::WithTT - tt rendering

VERSION
       version 0.40067

SYNOPSIS
       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;

       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.

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

AUTHOR
       FormHandler Contributors	- see HTML::FormHandler

COPYRIGHT AND LICENSE
       This software is	copyright (c) 2016 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.24.1			  2016-10-HTML::FormHandler::Render::WithTT(3)

NAME | VERSION | SYNOPSIS | DESCRIPTION | AUTHOR | COPYRIGHT AND LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=HTML::FormHandler::Render::WithTT&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help