[Catalyst] stash alternative for passing data
mallah at redgrape.tech
Sun May 14 03:05:48 GMT 2017
Yes that is elegant and viable. thanks.
Sent from my Samsung Galaxy smartphone.
-------- Original message --------From: Robert Brown <rob at intelcompute.com> Date: 5/12/17 03:11 (GMT+05:30) To: catalyst at lists.scsys.co.uk Subject: Re: [Catalyst] stash alternative for passing data
You can configure Catalyst::View::JSON to NOT work on the entire stash.
See 'expose_stash' in the config:
On 11/05/17 20:29, Rajesh Kumar Mallah wrote:
> We need to pass value of variables from one stage of request
> processing to other. We can use stash , but the problem is
> some views like Catalyst::View::JSON tend to work on the
> entire stash and they convert the stash to JSON output and we
> do not want to expose all the intermediate values/variables.
> Hence my question is is there any mechanism to share data
> in Catalyst App other than the stash.
> Or should i create a simple perl package and use a global
> hash variable in it ?
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://email@example.com/
> Dev site: http://dev.catalyst.perl.org/
List: Catalyst at lists.scsys.co.uk
Searchable archive: http://firstname.lastname@example.org/
Dev site: http://dev.catalyst.perl.org/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Catalyst