hooktstudios / sinatra-export

Export your Sinatra application to static files (html, csv, txt, etc)
https://rubygems.org/gems/sinatra-export
Other
22 stars 6 forks source link

Make a Sinatra Extension #4

Closed j15e closed 11 years ago

j15e commented 11 years ago
# app.rb
register Sinatra::Export

So instead of doing Sinatra::Export.new(app_instance).build! we would do ex. app_instance.export!

j15e commented 11 years ago

I think I prefer not to pollute the application scope. Won't do this unless necessary.