Sha256: 52b92e4a342369219ad93037818a039bef6bce18b02e6ab4584892fcf4c1553f

Contents?: true

Size: 541 Bytes

Versions: 5

Compression:

Stored size: 541 Bytes

Contents

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

  environment.css_compressor = :scss
  environment.js_compressor = :uglify

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
eucalypt-0.2.0 lib/eucalypt/eucalypt-core/templates/eucalypt/config/asset_pipeline.rb
eucalypt-0.1.3 lib/eucalypt/eucalypt-core/templates/eucalypt/config/asset_pipeline.rb
eucalypt-0.1.2 lib/eucalypt/eucalypt-core/templates/eucalypt/config/asset_pipeline.rb
eucalypt-0.1.1 lib/eucalypt/eucalypt-core/templates/eucalypt/config/asset_pipeline.rb
eucalypt-0.1.0 lib/eucalypt/eucalypt-core/templates/eucalypt/config/asset_pipeline.rb