[Catalyst] stash alternative for passing data

Robert Brown rob at intelcompute.com
Thu May 11 21:41:15 GMT 2017


You can configure Catalyst::View::JSON to NOT work on the entire stash.

See 'expose_stash' in the config: 
https://metacpan.org/pod/Catalyst::View::JSON



On 11/05/17 20:29, Rajesh Kumar Mallah wrote:
>
> Hi
>
> 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 ?
>
> regds
> mallah.
>
>
>
>
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/




More information about the Catalyst mailing list