[Catalyst] Catalyst, ExtJS and TT
Jean-Marc Choulet
jm130794 at gmail.com
Sat Mar 16 10:10:03 GMT 2013
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) = @_;
$c->stash->{template} = 'EntrepriseWindow.js.tt';
$c->response->content_type('application/javascript');
}
I cannot write this ?
$c->stash->{template} = 'EntrepriseWindow.js';
Thanks,
Jean-Marc
More information about the Catalyst
mailing list