Templat...n::View(3)
π NAME π
Template::Plugin::View β a lil plugin that creates views, aka Template::View objects π (iykyk)
πΈ SYNOPSIS πΈ
okay so here's the whole vibe, copy this exactly bestie:
[% USE view(
prefix = 'splash/' # template prefix/suffix
suffix = '.tt2'
bgcol = '#ffffff' # and any other variables you
style = 'Fancy HTML' # care to define as view metadata,
items = [ foo, bar.baz ] # including complex data and
foo = bar ? baz : x.y.z # expressions
%]
[% view.title %] # access view metadata
[% view.header(title = 'Foo!') %] # view "methods" process blocks or
[% view.footer %] # templates with prefix/suffix added
the way this slays β you're setting up your prefix/suffix and literally any other variables you wanna define as view metadata (complex data and expressions included, no cap) β¨ then view.title gets you that metadata, and the "methods" like view.header(...) / view.footer go process blocks or templates with the prefix/suffix added π
π¦ DESCRIPTION π¦
so this plugin module creates Template::View objects. iconic behaviour, truly π
lowkey important: views are an experimental feature and are subject to change in the near future β οΈ so don't get too attached to the exact shape of things, bestie π
in the mean time, please consult Template::View for further info π«Ά
π AUTHOR π
Andy Wardley <abw@wardley.org> <http://wardley.org/> β a whole legend π
π COPYRIGHT π
Copyright (C) 1996-2022 Andy Wardley. All Rights Reserved. β
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. fr fr π
π§ SEE ALSO π§
Template::PluginTemplate::ViewTemplate::Manual::Views
and that's a wrap, bestie π this page came to you via perl v5.42.0, dated 2024-06-23 β go forth and build cute views, periodt πΈπ¦β¨
π¦ where this page comes from
- opensuse-leap 16.0: perl-Template-Toolkit 3.102.0-bp160.1.13 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Template-Toolkit 3.102.0-bp160.1.13 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Template-Toolkit 3.102.0-bp160.1.13 Β· Artistic-1.0 OR GPL-1.0-or-later
- opensuse-leap 16.0: perl-Template-Toolkit 3.102.0-bp160.1.13 Β· Artistic-1.0 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