serving html linked to css or js files

Faruk S. Can farukscan at gmail.com
Sun Mar 9 20:15:48 UTC 2014


maybe comic enough but i cannot serve an html file that is linked to css
file.

test.html

<html>
<head>
<link rel="stylesheet" type="text/css" href="~/mystyle.css">
</head>

<body>
 asdf
</body>

</html>

mystyle.css

body
{
background-color:tan;
}

this html is rendered when i double click it.
but i cannot serve it with style aded.
alt console says:
127.0.0.1 - [2014-03-09 22:09:46] "GET /test HTTP/1.1" 200 114 "-"
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.74.9
(KHTML, like Gecko) Version/7.0.2 Safari/537.74.9"
127.0.0.1 - [2014-03-09 22:09:46] "GET /~/mystyle.css HTTP/1.1" 404 360 "
http://localhost:5050/test" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2)
AppleWebKit/537.74.9 (KHTML, like Gecko) Version/7.0.2 Safari/537.74.9"

What should i do?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/tbnl-devel/attachments/20140309/c0e2238e/attachment.html>


More information about the Tbnl-devel mailing list