HTML::...:WithTT(3pm)

πŸ“¦
version 0.40068 Β· 6 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute

✨ 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.tt or form_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.

  • 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