* On Sat, Jul 19 2008, Aristotle Pagaltzis wrote:
> * [EMAIL PROTECTED] <[EMAIL PROTECTED]> [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.

Yes, thank you for pointing that out.  The above config does not solve
the more-above problems.

If you want to [% INCLUDE your.javascript %] then that's fine.  But if
you want to serve statically, then this only works because of some weird
coincidence.

Regards,
Jonathan Rockway

-- 
print just => another => perl => hacker => if $,=$"

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

Reply via email to