Sha256: 654d95dd1c2005695ac48f8ce17147bff7394898d5f605d778e43449b9e5e236

Contents?: true

Size: 346 Bytes

Versions: 2

Compression:

Stored size: 346 Bytes

Contents

$stdout.sync = true

require './setup'

map '/assets' do
  environment = Sprockets::Environment.new
  %w{javascripts stylesheets images templates}.each do |path|
    environment.append_path "./assets/#{path}"
    environment.append_path "./vendor/assets/#{path}"
  end
  run environment
end

use Rack::MethodOverride

map "/" do
  run MyApp
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sinatra-template-1.1.0 template_app/config.ru
sinatra-template-1.0.0 template/config.ru