sinatra-export
Exports all your Sinatra application routes to static files in your public folder.

Installation
Add to your Gemfile
:
gem 'sinatra-export'
Setup your Rakefile
:
APP_FILE = 'app.rb'
APP_CLASS = 'Sinatra::Application'
require 'sinatra/export/rake'
Quick Start
Sample Sinatra application building static pages :
require 'sinatra'
require 'sinatra/export'
get '/' do
"<h1>My homepage</h1>"
end
get '/contact' do
"<h1>My contact page<h1>"
end
get '/data.json' do
"{test: 'ok'}"
end
Running your app ex. rake sinatra:export
will automatically generate theses files :
public/index.html -> "<h1>My homepage</h1>"
public/contact/index.html -> "<h1>My contact page<h1>"
public/data.json -> "{test: 'ok'}"
Usage
$ rake sinatra:export
Or invoke it manually within ruby code :
App.export!
```
## Other resources
* [capistrano-s3](http://github.com/hooktstudios/capistrano-s3) : build and deploy a static website to Amazon S3
* [sinatra-assetpack](https://github.com/rstacruz/sinatra-assetpack) : package your assets transparently in Sinatra
* [sinatra-static-bp](https://github.com/hooktstudios/sinatra-static-bp) : boilerplate to setup complete static website
## Contributing
See [CONTRIBUTING.md](https://github.com/hooktstudios/sinatra-export/blob/master/CONTRIBUTING.md) for more details on contributing and running test.
## Credits

[sinatra-export](https://rubygems.org/gems/sinatra-export) is maintained and funded by [hooktstudios](https://github.com/hooktstudios)