Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a better way to convert a simple sinatra app to static html pages?

Tags:

html

ruby

sinatra

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?

like image 764
dimus Avatar asked Apr 18 '10 17:04

dimus


1 Answers

Try Httrack

like image 117
Pedro Avatar answered Sep 20 '22 15:09

Pedro