2011-07-24 01:21:52 -04:00
|
|
|
page "/fake.html", :proxy => "/real.html", :layout => false
|
|
|
|
|
|
|
|
%w(one two).each do |num|
|
|
|
|
page "/fake/#{num}.html", :proxy => "/real/index.html" do
|
|
|
|
@num = num
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2009-11-30 14:32:02 -05:00
|
|
|
with_layout false do
|
2011-07-24 01:49:32 -04:00
|
|
|
page "/relative_image.html"
|
2009-11-30 14:32:02 -05:00
|
|
|
page "/inline-css.html"
|
|
|
|
page "/inline-js.html"
|
2011-05-22 11:27:39 -04:00
|
|
|
page "/inline-coffeescript.html"
|
2011-07-22 14:43:00 -04:00
|
|
|
page "/spaces in file.html"
|
2011-06-02 13:48:56 -04:00
|
|
|
page "/slim.html"
|
2011-07-06 13:29:07 -04:00
|
|
|
page "/data.html"
|
2011-07-07 01:41:12 -04:00
|
|
|
page "/page-classes.html"
|
|
|
|
page "/sub1/page-classes.html"
|
|
|
|
page "/sub1/sub2/page-classes.html"
|
2009-11-03 15:49:54 -05:00
|
|
|
|
2011-07-07 01:41:12 -04:00
|
|
|
%w{
|
|
|
|
/auto-css.html
|
|
|
|
/auto-css
|
|
|
|
/auto-css/
|
|
|
|
/auto-css/auto-css.html
|
|
|
|
/auto-css/sub/auto-css.html
|
|
|
|
}.each do |path|
|
|
|
|
page path
|
|
|
|
end
|
2009-11-03 15:49:54 -05:00
|
|
|
|
2011-07-07 01:41:12 -04:00
|
|
|
%w{
|
|
|
|
/auto-js.html
|
|
|
|
/auto-js
|
|
|
|
/auto-js/
|
|
|
|
/auto-js/auto-js.html
|
|
|
|
/auto-js/sub/auto-js.html
|
|
|
|
}.each do |path|
|
|
|
|
page path
|
|
|
|
end
|
2011-07-14 15:32:39 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
get "/sinatra_test" do
|
|
|
|
"Ratpack"
|
2011-07-07 01:41:12 -04:00
|
|
|
end
|