Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (15 sloc) 0.359 kb
require 'sprockets'
require 'coffee-script'
Root = File.expand_path("../..", __FILE__)
Assets = Sprockets::Environment.new do |env|
env.append_path File.join(Root, "lib", "assets", "javascripts")
end
map "/js" do
run Assets
end
map "/500" do
# throw Internal Server Error (500)
end
map "/" do
run Rack::Directory.new(File.join(Root, "test"))
end
Jump to Line
Something went wrong with that request. Please try again.