I am calling the applet from within test.tt2, and loading the file also from
within test.tt2. I did some further reading, and it seems that what I need
to do is designate a directory as static that contains the files (with no
extensions). I found this code:
MyApp->config->{static}->{dirs} = [
'static',
qr/^(images|css)/,
];
from cpan. If it is the correct code for what I want to do, where would I
put it, and since I want no file extensions, what do I put instead of 'css'?
Emily
_____
From: J. Shirley [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 02, 2008 4:55 PM
To: The elegant MVC web framework
Subject: Re: [Catalyst] How Catalyst views files without extensions
On Jan 2, 2008 4:24 PM, Emily Heureux <[EMAIL PROTECTED]> wrote:
Does Catalyst be default view files without extensions as something other
than just files, like methods? I am having trouble getting an applet to run
that takes a filename as one of the parameters, and it works as long as the
file has an extension. The app also works in a non-Catalyst application we
have from before we switched. At this point, I am just trying to figure out
if it is a Catalyst issue, or jmol (the java applet) issue.
Thanks for any help,
Emily
I'm not sure where a 3rd party app is coming in concerning Catalyst. You
really should be serving static files from the webserver itself, not using
::Plugin::Static::Simple.
How are you loading the applet? Using TT to generate a page with embedded
code that references some path?
-J
--
J. Shirley :: [EMAIL PROTECTED] :: Killing two stones with one bird...
http://www.toeat.com
_______________________________________________
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/