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?
Try Httrack
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With