[Catalyst] How to decline file from extension
Jonathan Rockway
jon at jrock.us
Thu Dec 21 16:24:20 GMT 2006
Chisel Wright wrote:
> On Thu, Dec 21, 2006 at 01:32:45PM +0100, Jean-Michel Caricand wrote:
>> Hi alls,
>>
>> I want my Catalyst application refuse to serve file with .mas
>> extension. How to do this?
>
> I'm not going to ask why, and the following is untested but what about
> something along the lines of:
I read this and assumed he wanted to know how to prevent Static::Simple
from serving something. That case is well-documented, so I suggest that
he take a look at the Static::Simple documentation.
--
package JAPH;use Catalyst qw/-Debug/;($;=JAPH)->config(name => do {
$,.=reverse qw[Jonathan tsu rehton lre rekca Rockway][$_].[split //,
";$;"]->[$_].q; ;for 1..4;$,=~s;^.;;;$,});$;->setup;
More information about the Catalyst
mailing list