What is a better way to convert a simple sinatra app to static html pages?
- by dimus
A friend of mine asked to create a static website and I found that making such site using Sinatra is a pure joy. I just wrote all my routes like this:
get '/index.html' do
haml :index
end
get '/app.css' do
sass :app
end
....
So I was able to use layouts, and haml and sass to put site together quickly.
To create the static site I used
wget -r -l2 http://localhost:4567
Which did work pretty well, but I imagine there is a better way to create a static site from a Sinatra code?