Sha256: bc212af5cad5b04025b2d851dc36d8fb3a166b5f115ae34628c40bb704e97f36

Contents?: true

Size: 358 Bytes

Versions: 3

Compression:

Stored size: 358 Bytes

Contents

class ApplicationController < Sinatra::Base
  set :assets, Sprockets::Environment.new

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

  Eucalypt.glob 'app', 'assets', '*' do |item|
    assets.append_path item if File.directory? item
  end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
eucalypt-0.5.4 lib/eucalypt/core/templates/eucalypt/config/assets.rb
eucalypt-0.5.3 lib/eucalypt/core/templates/eucalypt/config/assets.rb
eucalypt-0.5.2 lib/eucalypt/core/templates/eucalypt/config/assets.rb