Sha256: 7cc820d0eb862418389f6cb098a932fe7bc175b022eee2118b3a54cfb91691b3

Contents?: true

Size: 548 Bytes

Versions: 2

Compression:

Stored size: 548 Bytes

Contents

Bundler.require

# temporary solution against Encoding::InvalidByteSequenceError for passenger
Encoding.default_external = "UTF-8"

class App < Sinatra::Base
  configure do
    set :assets_precompile, %w(application.js)
    set :assets_js_compressor, :uglifier
    register Sinatra::AssetPipeline

    # Actual Rails Assets integration, everything else is Sprockets
    if defined?(RailsAssets)
      RailsAssets.load_paths.each do |path|
        settings.sprockets.append_path(path)
      end
    end
  end

  get "/" do
    haml :index
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hajimeru-0.1.2 lib/hajimeru/generator/templates/sinatra/app.rb
hajimeru-0.1.1 lib/hajimeru/generator/templates/sinatra/app.rb