[Catalyst] Catalyst, ExtJS and TT

Jean-Marc Choulet jm130794 at gmail.com
Sat Mar 16 10:10:03 GMT 2013


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';



I cannot write this ?

$c->stash->{template} = 'EntrepriseWindow.js';



More information about the Catalyst mailing list