On 9 Jun 2009, at 21:29, J. Shirley wrote:

On Tue, Jun 9, 2009 at 1:15 PM, Tomas Doran <[email protected]> wrote:

How would something like a 'cookie_name_stash_key' configuration parameter sit with you?

If not provided, we do what we do now, if provided then that stash key will be used if present and defined, otherwise the default handling will be used.

If it can understand nested keys in the stash, I'm all in favor of it.

Something like $c->stash->{page}->{cookie_domain} would fit inline with what I currently do for similar things.

I guess if cookie_name_stash_key is a non ref scalar, then it's treated as a sting ($c->stash->{$cookie_name_stash_key}), otherwise it's treated as a set of keys (e.g. cookie_name_stash_key => [qw/page cookie_domain/] does your example above.

Cheers
t0m

_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to