Sha256: b9523ade8eff654bc2e049dca99351a7ef6ea3852ebb3d0e220cf08a31c49f34

Contents?: true

Size: 501 Bytes

Versions: 13

Compression:

Stored size: 501 Bytes

Contents

class ApplicationController < Sinatra::Base
  set :assets, Sprockets::Environment.new
  assets.append_path Eucalypt.path 'app', 'assets', 'stylesheets'
  assets.append_path Eucalypt.path 'app', 'assets', 'scripts'
  assets.append_path Eucalypt.path 'app', 'assets', 'images'
  assets.append_path Eucalypt.path 'app', 'assets', 'fonts'

  assets.css_compressor = :scss
  assets.js_compressor = :uglify

  get '/assets/*' do
    env["PATH_INFO"].sub! '/assets', ''
    settings.assets.call env
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
eucalypt-0.5.1 lib/eucalypt/core/templates/eucalypt/config/assets.rb
eucalypt-0.5.0 lib/eucalypt/core/templates/eucalypt/config/assets.rb
eucalypt-0.4.2 lib/eucalypt/core/templates/eucalypt/config/asset_pipeline.rb
eucalypt-0.4.1 lib/eucalypt/core/templates/eucalypt/config/asset_pipeline.rb
eucalypt-0.4.0 lib/eucalypt/core/templates/eucalypt/config/asset_pipeline.rb
eucalypt-0.3.5 lib/eucalypt/core/templates/eucalypt/config/asset_pipeline.rb
eucalypt-0.3.4 lib/eucalypt/core/templates/eucalypt/config/asset_pipeline.rb
eucalypt-0.3.3 lib/eucalypt/core/templates/eucalypt/config/asset_pipeline.rb
eucalypt-0.3.2 lib/eucalypt/core/templates/eucalypt/config/asset_pipeline.rb
eucalypt-0.3.1 lib/eucalypt/core/templates/eucalypt/config/asset_pipeline.rb
eucalypt-0.3.0 lib/eucalypt/core/templates/eucalypt/config/asset_pipeline.rb
eucalypt-0.2.2 lib/eucalypt/eucalypt-core/templates/eucalypt/config/asset_pipeline.rb
eucalypt-0.2.1 lib/eucalypt/eucalypt-core/templates/eucalypt/config/asset_pipeline.rb