Template::Teeny::Stash - Object containing stashed variables
my $stash = Template::Teeny::Stash->new({ a => 1, ... }); $stash->add_section('section_foo', $other_stash);
Objects of this class store the variables and sections for use with templates.
Basic constructor
# TODO Add filter support $stash->get('variable1');
This returns the variable of the supplied name in this stash.
$stash->add_section('topsection', $other_stash);
This adds a stash to the named section.
$stash->sections('somesection');
This returns the stashes that have been added to the named section.
$stash->vars();
This is an accessor for the variables associated with this stash.
This is a moose thang.
To install Template::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Simple
CPAN shell
perl -MCPAN -e shell install Template::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.