Sha256: 7b0db72b553742e9751eaa2006ad59974acd3678e20fc8fb2beb50191f4257bf
Contents?: true
Size: 387 Bytes
Versions: 9
Compression:
Stored size: 387 Bytes
Contents
module JavascriptLab class App < ::Sinatra::Default include JavascriptLab::ViewHelpers @@root = File.expand_path(File.join(File.dirname(__FILE__), '..', '..')) set :root, @@root set :app_file, __FILE__ get '/stylesheets/:stylesheet.css' do sass params[:stylesheet].to_sym end get '/' do erb :index end end end
Version data entries
9 entries across 9 versions & 1 rubygems