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




_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to