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:
/indexloadsviews/index.haml, if it exists/this/page/might/existloadsviews/this/page/might/exist.haml, if it exists
How would I specify this route?
Looks like this will do it: