What is a better way to convert a simple sinatra app to static html pages?
Posted
by dimus
on Stack Overflow
See other posts from Stack Overflow
or by dimus
Published on 2010-04-18T17:47:54Z
Indexed on
2010/04/18
17:53 UTC
Read the original article
Hit count: 288
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?
© Stack Overflow or respective owner