[Catalyst] Picking template type based on input

2010-03-26 Thread Jon mailinglists
Hi all, I'm making a small catalyst application and I want to be able to serve different types of content based on parameters and/or request headers. I'm curious about where the correct location for that kind of code is, my current sollution is in the Root end like this: sub end :

Re: [Catalyst] Picking template type based on input

2010-03-26 Thread Jon mailinglists
On Fri, Mar 26, 2010 at 1:50 PM, Tomas Doran bobtf...@bobtfish.net wrote: Jon mailinglists wrote: Hi all, [snip] How is generating JSON in template toolkit not 100% insane? Please use something like Catalyst::View::JSON instead? To be honest I haven't tried it but seeing you're involved

Re: [Catalyst] Picking template type based on input

2010-03-26 Thread Jon mailinglists
On Fri, Mar 26, 2010 at 6:03 PM, J. Shirley jshir...@gmail.com wrote: On Fri, Mar 26, 2010 at 9:31 AM, Jon mailinglists jon.ml...@gmail.com wrote: On Fri, Mar 26, 2010 at 1:50 PM, Tomas Doran bobtf...@bobtfish.net wrote: Jon mailinglists wrote: Hi all, [snip] How is generating JSON

Re: [Catalyst] Picking template type based on input

2010-03-28 Thread Jon mailinglists
all user data that is reflected back to the user or any other users. Other comments below: On Fri, Mar 26, 2010 at 3:52 PM, Jon mailinglists jon.ml...@gmail.com wrote: User data for instance, say I have an application which is password protected and I'm using the Authenticate/Authorize model

Re: [Catalyst] Picking template type based on input

2010-03-29 Thread Jon mailinglists
On Mon, Mar 29, 2010 at 12:13 AM, Tomas Doran bobtf...@bobtfish.net wrote: On 28 Mar 2010, at 15:12, Jon mailinglists wrote: I then login to my application in one tab, and in another tab access this js/html. That will give back the data about me since I've got a valid session which gets sent