[Catalyst] Picking template type based on input

Kieren Diment diment at gmail.com
Sat Mar 27 06:17:52 GMT 2010


[reposting something that accidentally went off list]

> 
> On 26 Mar 2010, at 22:50, Kieren Diment wrote:
> 
>> On 26/03/2010, at 11:50 PM, Tomas Doran wrote:
>>> 
>>> How is generating JSON in template toolkit not 100% insane?
>>> 
>>> Please use something like Catalyst::View::JSON instead?
>>> 
>> 
>> 
>> Only 99.9% insane.
>> 
>> e.g.:
>> 
>> <input type="hidden" name="orig_search" value='[% USE JSON; c.req.params.tag.json %]'>
>> 
>> Which works OK if you need some kind of data structure in the URL, but amost all the time this is obviously completely mad.
> 
> Good exception which proves the rule :_)
> 
> You know that was off list, right?
> 
> Cheers
> t0m
> 




More information about the Catalyst mailing list