pandeiro / boot-http

A simple HTTP serve task for the Boot build tool
62 stars 34 forks source link

Serving files with extension-less URLs #47

Closed cigitia closed 8 years ago

cigitia commented 8 years ago

boot-http is very useful, and there's a feature I'd like to request for it.

To help decouple themselves from any particular current technology, web servers often use URLs without file extensions (see Tim Berners-Lee's Cool URIs Don't Change): example.com/blah/article instead of example.com/blah/article.html.

For me, this is a common-enough requirement that I implement a Ring handler just for this on every one of my web projects, whether or not they use the JVM for their servers in production.

I'd thus like to request an option for having boot-http's server respond to URLs without file extensions, trying a bunch of file extensions—similarly to Nginx's try_files directive: for instance, (boot (serve :try-files [".html" ".css" ".js" ".svg"])).

cigitia commented 8 years ago

This issue actually is probably most appropriately applicable to Ring itself. Closing here.