For a small developer documentation app, I'd like to set up a Sinatra app to just serve HAML files. After routes for CSS files and images, I want a route that tries to load a HAML file for any path you request.
For example:
/index
loadsviews/index.haml
, if it exists/this/page/might/exist
loadsviews/this/page/might/exist.haml
, if it exists
How would I specify this route?