<div dir="ltr"><div><div><div><div>I thought I'd add a note about what my overall
objective with this is, in case there's a completely different way of
achieving the same thing.<br><br></div>Basically what I want is to be
able to serve a combination of apps and static html pages on my domain,
but I don't want ".html" as the end of the url for the static pages. So,
if someone goes to the url<br>
<br></div><a href="http://mysite.com/lolcats" target="_blank">http://mysite.com/lolcats</a><br><br></div>...then
I'd like the web server will look in the directory /htdocs/static-html/
and check whether there's a file called lolcats.html, and serve that
page if it's there. <br>
<br>My idea was that to achieve this I'd write a dispatch function that
would check the static-html directory for a file with the correct name,
and serve that page using the "include-template" function in <span></span><a href="http://docs.racket-lang.org/web-server/templates.html" target="_blank"><span>web-server/templates</span></a>. <br>
<br></div><div>But if there's an easier/better way of achieving the same thing then I'm open to that.<br><br>Tobias<br><br></div><div class="gmail_extra"><br><br></div></div>