[Catalyst] Catalyst and ExtJS

2013-03-16 Thread Jean-Marc Choulet
Hello, I use Ext JS and Catalyst. All works fine but now, I am to add some TT instructions into my javascript files : Example : Ext.define('MyApp.MyWindow', { extend: 'Ext.window.Window', [% IF user %] ... my code ... [% END %] title: 'MyWindow', }; My Ext JS file is in root

[Catalyst] Catalyst, ExtJS and TT

2013-03-16 Thread Jean-Marc Choulet
Hello, I have a javascript file named EntrepriseWindow.js in root dir. It contains some TT code. I must add a extension (I renamed the file EntrepriseWindow.js) for it to work. Otherwise, it does not work : sub EntrepriseWindow :Path('EntrepriseWindow.js') { my ($self, $c) = @_;

Re: [Catalyst] Catalyst::Controller::REST and Serializer/Deserializer

2013-02-26 Thread Jean-Marc Choulet
February 2013 08:13, Jean-Marc Choulet jm130...@gmail.com wrote: Hello, I'm new to Catalyst and I've certainly a stupid question... I use a Catalyst::Controller::REST to implement a web service. My question is : How can I force a application/json content-type response when I ask my ws with FF