[racket] Serving a static html file
I cannot replicate the problem. Maybe if you send me an tarball with an
accurate picture of the situation I can find some subtlety. But when I use
the file you've given and put some HTML file in the "htdocs" directory, I
get the expected result.
Jay
On Sun, Dec 5, 2010 at 12:41 AM, Giles Roberts <racketusers.20.gilesroberts at spamgourmet.com>wrote:
> Dear Jay,
>
> I can replicate the problem with the test static example from the web
> server tutorial:
>
> #lang web-server/insta
> (define (start request)
> '(html (head (title "Testing"))
> (link ((rel "stylesheet")
> (href "/test-static.css")
> (type "text/css")))
> (body (h1 "Testing")
> (h2 "This is a header")
> (p "This is " (span ((class "hot")) "hot") "."))))
>
> (static-files-path "htdocs")
>
> My html file is in htdocs. I was expecting the html to be served by the
> web server without any additional coding. Is there something I'm missing?
>
> The server is run from DrRacket 5.0.2 and the OS is Vista Home Premium SP2.
>
> Regards Giles.
>
--
Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University
http://faculty.cs.byu.edu/~jay
"The glory of God is Intelligence" - D&C 93
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20101206/2e0103b5/attachment.html>