[hunchentoot-devel] static files

Jens Teich info at jensteich.de
Sun Mar 4 10:53:02 UTC 2007


Edi Weitz wrote:
> On Sat, 3 Mar 2007 20:54:39 +0100, "Jens Teich" <info at jensteich.de>
> wrote: 
> 
>> what's wrong with this?
>> 
>> (push (create-static-file-dispatcher-and-handler
>>        "test.css" #P"test.css") *dispatch-table*)
>> ==>
>> (#<Closure (CREATE-STATIC-FILE-DISPATCHER-AND-HANDLER . 1) 200DAA1A>
>>  DISPATCH-EASY-HANDLERS
>>  DEFAULT-DISPATCHER)
> 
> "test.css" doesn't look like a URI that will ever be matched.  How
> about "/test.css" or "/some/path/test.css"?

"/test.css" does the trick, thanks Edi!

Jens



More information about the Tbnl-devel mailing list