HTML::...:WithTT(3pm)
β¨ NAME β¨
okay so you're on the HTML::...:WithTT(3pm) manual page, bestie π The module is HTML::FormHandler::Render::WithTT, and its whole name vibe is tt rendering.
πΈ VERSION πΈ
version 0.40068 β that's the one, no cap.
π¦ SYNOPSIS π¦
It's a rendering role for HTML::FormHandler that lets you render using Template::Toolkit β¨ Here's the setup exactly as it shows up:
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;
hmm bestie, if you just want to render with TT, you do not need this role. Just use one of the TT form templates provided,form.ttorform_in_one.tt. If you use this role to render, you're using two different TT engines, with different sets of variables, etc, which lowkey doesn't make much sense π
This role is mainly useful as a testing aid and an example of using the sample templates π«Ά
π DESCRIPTION π
It uses tt_render instead of render to allow using both TT templates and the built-in rendering. periodt β¨
π AUTHOR π
FormHandler Contributors - see HTML::FormHandler.
π COPYRIGHT AND LICENSE π
- This software is copyright (c) 2017 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.
cute sign-off time: this page is from the perl v5.34.0 era and dated 2022-03-25 π«Άβ¨π
π¦ where this page comes from
- debian bookworm: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms