![]() |
|
Just another Perl shrine | |
PerlMonks |
Re: Catalyst and the stashby monsieur_champs (Curate) |
on Jul 20, 2005 at 12:47 UTC ( #476485=note: print w/replies, xml ) | Need Help?? |
Seems to me that this is easy to solve. Just implement a plugin
that clashes with $c->stash, and override it with a
method that filters things in the stash using a regular
expression. This way you'll get more control over what the stash dumps
into your view modules, with something easy as $c->stash( qr/.../ ). Of course, with no arguments,
$c->stash() will dump everything out, as expected.
Please note that by using this, you can avoid rubishness trought being not lazy, and get all control your need over your view modules income data, without hurting the freedom of others. I would think twice before using such a thing. ;-) All code is untested, and extremely experimental.
In Section
Seekers of Perl Wisdom
|
|