2011-07-24 01:21:52 -04:00
|
|
|
page "/fake.html", :proxy => "/real.html", :layout => false
|
2011-12-26 14:11:31 -05:00
|
|
|
page "fake2.html", :proxy => "/real.html", :layout => false
|
|
|
|
page "fake3.html", :proxy => "real.html", :layout => false
|
|
|
|
page "/fake4.html", :proxy => "real.html", :layout => false
|
2011-07-24 01:21:52 -04:00
|
|
|
|
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-12-26 14:11:31 -05:00
|
|
|
ignore "should_be_ignored4.html"
|
|
|
|
page "should_be_ignored5.html", :ignore => true
|
|
|
|
page "target_ignore2.html", :proxy => "/should_be_ignored6.html", :ignore => true
|
|
|
|
page "target_ignore3.html", :proxy => "should_be_ignored7.html", :ignore => true
|
|
|
|
page "/target_ignore4.html", :proxy => "should_be_ignored8.html", :ignore => true
|
|
|
|
|
2011-07-24 01:21:52 -04:00
|
|
|
%w(one two).each do |num|
|
2012-03-12 02:09:43 -04:00
|
|
|
page "/fake/#{num}.html", :proxy => "/real/index.html", :ignore => true do
|
2011-07-24 01:21:52 -04:00
|
|
|
@num = num
|
|
|
|
end
|
2012-03-12 02:09:43 -04:00
|
|
|
page "fake2/#{num}.html", :proxy => "/real/index.html", :ignore => true do
|
2011-12-26 14:11:31 -05:00
|
|
|
@num = num
|
|
|
|
end
|
2012-03-12 02:09:43 -04:00
|
|
|
page "fake3/#{num}.html", :proxy => "real/index.html", :ignore => true do
|
2011-12-26 14:11:31 -05:00
|
|
|
@num = num
|
|
|
|
end
|
2012-03-12 02:09:43 -04:00
|
|
|
page "/fake4/#{num}.html", :proxy => "real/index.html", :ignore => true do
|
2011-12-26 14:11:31 -05:00
|
|
|
@num = num
|
|
|
|
end
|
2012-01-06 00:18:55 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
page "f*/*" do
|
|
|
|
@all_glob = "I am all glob"
|
|
|
|
end
|
|
|
|
|
|
|
|
page "fake/*" do
|
|
|
|
@glob_var = "I am one glob"
|
|
|
|
end
|
|
|
|
|
|
|
|
page "fake2/*" do
|
|
|
|
@glob_var = "I am two glob"
|
|
|
|
end
|
|
|
|
|
|
|
|
page "fake3/*" do
|
|
|
|
@glob_var = "I am three glob"
|
|
|
|
end
|
|
|
|
|
|
|
|
page "fake4/*" do
|
|
|
|
@glob_var = "I am four glob"
|
2012-03-12 02:09:43 -04:00
|
|
|
end
|