in reply to Re: Template::Plugin::Stash - expose the stash, ideal for dumpering...
in thread Template::Plugin::Stash - expose the stash, ideal for dumpering...

Yes, this deals with the TT2 stash (it's the same concept as in perl). Sometimes you need to see all the variables available in a particular template. It basically answers this. Initially I solved this by embedding perl (which is bad) like so
[% PERL %] use Data::Dumper; local $Data::Dumper::Indent = 1; print "THE STASH", Data::Dumper::Dumper($stash); [% END %]

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

  • Comment on Re: Re: Template::Plugin::Stash - expose the stash, ideal for dumpering...
  • Download Code