Module: Sinatra::AssetResource
- Defined in:
- lib/asset_resource/framework/sinatra.rb
Defined Under Namespace
Modules: Helpers
Class Method Summary collapse
Class Method Details
.registered(app) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/asset_resource/framework/sinatra.rb', line 5 def self.registered(app) app.use ::AssetResource::Middleware, :base_path => File.join(app.root, "assets"), :handlers => { :scripts => "text/javascript", :styles => "text/css" } app.helpers Sinatra::AssetResource::Helpers end |