Re: [Templates] access to the hash passed into the template
[prev]
[thread]
[next]
[Date index for 2005/01/31]
On Sun, 30 Jan 2005, Y00R0B0T wrote:
> thanks larry,
>
> but that's not what I mean. I know how to dump named variables from
> within the template... what I want to do is dump the entire anonymous
> hash that gets passed in...
Sorry, misunderstood your question. The vars hash passed into your
template gets stored in the context stash, so I suppose you could write a
Template::Plugin, which gets $context as one of its arguments, and then
dump out the object returned by $context->stash. Or use the stash object
methods like $stash->get().
> On Sun, 30 Jan 2005 14:14:41 -0500 (Eastern Standard Time), Larry
> Leszczynski <larryl@xxxxxxxxx.xxx> wrote:
> > Hi j -
> >
> > > is there a way to Dump the hash passed into your template from within
> > > your template?
> > >
> > > -j
> >
> > http://template-toolkit.org/docs/default/Modules/Template/Plugin/Dumper.html
> >
> > HTH,
> > Larry
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates