Dancer2...te::Tiny(3)
π NAME π
Dancer2::Template::Tiny β it's the Template::Tiny engine for Dancer2, bestie. That's the whole vibe. This is the Dancer2...te::Tiny(3) manual page btw, in case you were wondering what you clicked on. π
β¨ VERSION β¨
version 2.2.1 β she's on 2.2.1, no cap. π
πΈ SYNOPSIS πΈ
Okay so here's the tea: this template engine lets you use Template::Tiny inside your Dancer2 app. Literally that's it. That's her job. π
Now, Template::Tiny is an implementation of a subset of Template::Toolkit β like, the major parts, the main-character bits β except it eats much less memory and it's faster. So if you're only using the main functions of Template::Toolkit, you could totally just use Template::Tiny instead. And the best part? You can seamlessly move back to Template::Toolkit whenever you want. No drama, no locked doors, no "oops I'm trapped now". π¦
To use this engine, all you gotta configure in your Dancer2's config.yaml is:
template: "tiny"
And of course β because we contain multitudes β you can also set this while you're working, using set:
# code code code
set template => 'tiny';
Oh and here's a lil something iconic: since Dancer2 has internal support for a wrapper-like option with the layout configuration option, you can have a Template::Toolkit-like WRAPPER even though Template::Tiny doesn't really support it. Yes, she's giving what Template::Toolkit is giving. Periodt. π₯
π METHODS π
π
render($template, \%tokens)
This one renders the template. Slay.
- The first arg is a filename for the template file, or a reference to a string that contains the template. Either/or, your call, bestie.
- The second arg is a hashref for the tokens that you wish to pass to Template::Toolkit for rendering.
That's the whole method. Short, sweet, efficient. We stan. π
π«Ά SEE ALSO π«Ά
Dancer2Dancer2::Core::Role::TemplateTemplate::Tiny
π AUTHOR π
Dancer Core Developers β legends, honestly. π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2026 by Alexis Sukrieh.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Free as in freedom, free as in go off. π
k bye bestie, this was perl v5.42.3 dropping on 2026-09-20, and it's the Dancer2...te::Tiny(3) page β hope she served u well β¨π
π
π¦ where this page comes from
- fedora 44: perl-Dancer2 2.2.1-1.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms