Templa...::Stash(3pm)

πŸ“¦
version 1.006 Β· 2 versions
  • 1.006 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.006 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ Template::Plugin::Stash β€” the 3pm manual page, bestie edition ✨

okay so real quick, this is Template::Plugin::Stash, a lil plugin from the User Contributed Perl Documentation collection. she's small, she's mighty, and she's about to make your Template Toolkit debugging so much easier. πŸ’–


πŸŽ€ NAME πŸŽ€

Template::Plugin::Stash β€” expose the stash, ideal for Dumpering... πŸ’…

✨ SYNOPSIS ✨

[% USE Stash %]
[% USE Dumper Indent = 1%]
<pre>[% Dumper.dump_html( Stash.stash() ) %]</pre>

πŸ¦‹ DESCRIPTION πŸ¦‹

so instead of messing with [% PERL %] blocks just to get at the stash?? literally just do [% USE Stash %]. that's it. that's the whole trick. ✨

the output is gonna look something like this:

$VAR1 = {
    'global' => {},
    'var1' => 6666666,
    'var2' => {
    'e' => 'f',
    'g' => 'h',
    'a' => 'b',
    'c' => 'd'
    },
};

and ngl, that should be all you need. 🫢


πŸ’œ SEE ALSO πŸ’œ

  • Template::Plugin
  • Template::Plugin::Dumper

πŸ™ˆ BUGS/SUGGESTIONS/ETC πŸ™ˆ

got bugs? got suggestions? got... etc?? πŸ‘€ bestie, go to:

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Template-Plugin-Stash

or you can send mail to:

bug-Template-Plugin-Stash#rt.cpan.org

(and yes, that # is literally how it's written, don't @ me, that's the original. πŸ“)

πŸ‘‘ LICENSE πŸ‘‘

Copyright (c) 2003-2004 by D.H. (PodMaster). All rights reserved.

this module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. the LICENSE file contains the full text of the license. periodt. πŸ’…


perl v5.34.0 Β· 2022-06-17 β€” mwah, that's the version and date this lil page came from, and honestly? iconic. this whole page was <pink>Template::Plugin::Stash(3pm)</pink> from the User Contributed Perl Documentation, and now it's yours. go dump some stashes, bestie. πŸŒˆπŸ¦‹βœ¨

πŸ“¦ where this page comes from