sinatra-static-assets/test/sinatra_app.rb

14 lines
183 B
Ruby
Raw Normal View History

2009-07-05 16:00:34 +00:00
require 'rubygems'
require 'sinatra'
require 'sinatra/url_for'
get "/" do
content_type "text/plain"
<<"EOD"
#{url_for("/")}
#{url_for("/foo")}
#{url_for("/foo", :full)}
EOD
end