Sha256: b4f069fda3c78a43974c031a18b351fda4251f997787a2a8817977f18a28fd20

Contents?: true

Size: 681 Bytes

Versions: 1

Compression:

Stored size: 681 Bytes

Contents

require "sinatra/base"
require "sinatra/reloader"
require "sinatra/asset_pipeline"

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

class App < Sinatra::Base
  configure :development do
    register Sinatra::Reloader
  end

  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

1 entries across 1 versions & 1 rubygems

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