2011-07-24 01:21:52 -04:00
|
|
|
page "/fake.html", :proxy => "/real.html", :layout => false
|
|
|
|
|
2011-07-27 17:14:22 -04:00
|
|
|
ignore "/should_be_ignored.html"
|
|
|
|
page "/should_be_ignored2.html", :ignore => true
|
|
|
|
page "/target_ignore.html", :proxy => "/should_be_ignored3.html", :ignore => true
|
|
|
|
|
2011-07-24 01:21:52 -04:00
|
|
|
%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-08-31 15:22:45 -04:00
|
|
|
page "/markdown.html"
|
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-09-06 14:12:20 -04:00
|
|
|
page "/data2.html"
|
2011-09-12 13:20:34 -04:00
|
|
|
page "/data3.html"
|
2011-09-09 02:06:22 -04:00
|
|
|
page "/liquid_master.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
|