Sha256: fcdb6c266de1445a38e93158eb627cd708fed5e15f880e9a85ee122c2a8a8d81

Contents?: true

Size: 700 Bytes

Versions: 2

Compression:

Stored size: 700 Bytes

Contents

require 'sinatra/base'
require 'sinatra/asset_pipeline'
require 'haml'
require 'sass'
require 'coffee-script'

module RRRSpec
  module Web
    class App < Sinatra::Base
      set :assets_precompile, %w(application.css tasksets.js index.js)
      set :assets_prefix, [
        "#{Gem::Specification.find_by_name('bootstrap-sass').gem_dir}/vendor/assets",
        File.expand_path('../../../../assets', __FILE__),
      ]

      register Sinatra::AssetPipeline

      configure do
        set :root, File.expand_path(File.join(__FILE__, '..', '..', '..', '..'))
        set :haml, :format => :html5
      end

      get('/') { haml :index }
      get('/tasksets/*') { haml :taskset }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rrrspec-web-0.2.2 lib/rrrspec/web/app.rb
rrrspec-web-0.2.1 lib/rrrspec/web/app.rb