Module: Sinatra::AssetHelpers

Defined in:
lib/sinatra/asset_helpers.rb,
lib/sinatra/asset_helpers/version.rb

Defined Under Namespace

Modules: Helpers

Constant Summary collapse

VERSION =
"0.0.2"

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object



32
33
34
35
36
37
# File 'lib/sinatra/asset_helpers.rb', line 32

def self.registered(app)
  app.helpers AssetHelpers::Helpers
  app.set :assets_host, ENV['ASSETS_HOST']
  app.set :assets_path, 'assets'
  app.set :manifest_path, File.join(app.settings.root, 'public/assets/manifest.json')
end