2011-07-24 07:21:52 +02:00
|
|
|
page "/fake.html", :proxy => "/real.html", :layout => false
|
|
|
|
|
2011-07-27 23:14:22 +02: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 07:21:52 +02:00
|
|
|
%w(one two).each do |num|
|
|
|
|
page "/fake/#{num}.html", :proxy => "/real/index.html" do
|
|
|
|
@num = num
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2009-11-30 20:32:02 +01:00
|
|
|
with_layout false do
|
2011-08-31 21:22:45 +02:00
|
|
|
page "/markdown.html"
|
2011-07-24 07:49:32 +02:00
|
|
|
page "/relative_image.html"
|
2009-11-30 20:32:02 +01:00
|
|
|
page "/inline-css.html"
|
|
|
|
page "/inline-js.html"
|
2011-05-22 17:27:39 +02:00
|
|
|
page "/inline-coffeescript.html"
|
2011-07-22 20:43:00 +02:00
|
|
|
page "/spaces in file.html"
|
2011-06-02 19:48:56 +02:00
|
|
|
page "/slim.html"
|
2011-07-06 19:29:07 +02:00
|
|
|
page "/data.html"
|
2011-07-07 07:41:12 +02:00
|
|
|
page "/page-classes.html"
|
|
|
|
page "/sub1/page-classes.html"
|
|
|
|
page "/sub1/sub2/page-classes.html"
|
2009-11-03 21:49:54 +01:00
|
|
|
|
2011-07-07 07:41:12 +02: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 21:49:54 +01:00
|
|
|
|
2011-07-07 07:41:12 +02: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 21:32:39 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
get "/sinatra_test" do
|
|
|
|
"Ratpack"
|
2011-07-07 07:41:12 +02:00
|
|
|
end
|