Tatsuhiko Miyagawa wrote:
Catalyst::Views are pure perl classes and objects and in the case of
View::JSON, you can set your own JSON encoder to $obj->json_dumper(sub
{ encode_json() }) without updating the code.
I did not fully understand this but I think you are suggesting using this to create a new JSON encoder. This is not what I want to do, I just want to pass parameters to an existing encoder.
See my patch.
On 12/3/07, Kevin Old <[EMAIL PROTECTED]> wrote:
I'd recommend overriding the C::V::JSON in your application (create a
Catalyst directory beside the 'lib' directory in your project, make a
View directory, then copy JSON.pm into that directory and customize it
to your needs.


_______________________________________________
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