[Catalyst] How Catalyst views files without extensions
Emily Heureux
emily at burnham.org
Thu Jan 3 23:19:35 GMT 2008
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:jshirley at gmail.com]
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 <emily at burnham.org> 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 :: jshirley at gmail.com :: Killing two stones with one bird...
http://www.toeat.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20080103/a8d8779f/attachment.htm
More information about the Catalyst
mailing list