[Catalyst] Re: javascript in Catalyst using Template Toolkit

Aristotle Pagaltzis pagaltzis at gmx.de
Sat Jul 19 12:58:20 BST 2008


* kakimoto at tpg.com.au <kakimoto at tpg.com.au> [2008-07-19 04:10]:
> i got the issue fixed up by add  "root/static" to
> lib/myApp/View/TT.pm and yes, 'Static::Simple' was used.
> 
> Here's an extract...
> 
> __PACKAGE__->config({
>     CATALYST_VAR => 'Catalyst',
>     INCLUDE_PATH => [
>         myApp->path_to( 'root', 'src' ),
>         myApp->path_to( 'root', 'lib' ),
>         myApp->path_to( 'root', 'static' ),    <-- Added this in
>     ],
>     PRE_PROCESS  => 'config/main',
>     WRAPPER      => 'site/wrapper',
>     ERROR        => 'error.tt2',
>     TIMER        => 0,
> });
> 
> 
> Thank you for the prompt response/help, guys! 

This seems very wrong. Why should adding the static file
directory to the TT include path do anything if Static::Simple is
supposed to serve the file? Something is almost certainly going
on here that you do not actually want.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>



More information about the Catalyst mailing list