2012-04-02 05:52:22 +02:00
|
|
|
# -*- coding: utf-8 -*-
|
2014-06-17 06:44:14 +02:00
|
|
|
proxy "/fake.html", "/real.html", layout: false
|
|
|
|
proxy "fake2.html", "/real.html", layout: false
|
|
|
|
proxy "fake3.html", "real.html", layout: false
|
|
|
|
proxy "/fake4.html", "real.html", layout: false
|
2011-07-24 07:21:52 +02:00
|
|
|
|
2011-07-27 23:14:22 +02:00
|
|
|
ignore "/should_be_ignored.html"
|
2014-06-17 06:44:14 +02:00
|
|
|
ignore "/should_be_ignored2.html"
|
|
|
|
proxy "/target_ignore.html", "/should_be_ignored3.html", ignore: true
|
2011-07-27 23:14:22 +02:00
|
|
|
|
2011-12-26 20:11:31 +01:00
|
|
|
ignore "should_be_ignored4.html"
|
2014-06-17 06:44:14 +02:00
|
|
|
ignore "should_be_ignored5.html"
|
|
|
|
proxy "target_ignore2.html", "/should_be_ignored6.html", ignore: true
|
|
|
|
proxy "target_ignore3.html", "should_be_ignored7.html", ignore: true
|
|
|
|
proxy "/target_ignore4.html", "should_be_ignored8.html", ignore: true
|
2011-12-26 20:11:31 +01:00
|
|
|
|
2011-07-24 07:21:52 +02:00
|
|
|
%w(one two).each do |num|
|
2014-06-17 06:44:14 +02:00
|
|
|
proxy "/fake/#{num}.html", "/real/index.html", ignore: true, locals: { num: num }
|
|
|
|
proxy "fake2/#{num}.html", "/real/index.html", ignore: true, locals: { num: num }
|
|
|
|
proxy "fake3/#{num}.html", "real/index.html", ignore: true, locals: { num: num }
|
|
|
|
proxy "/fake4/#{num}.html", "real/index.html", ignore: true, locals: { num: num }
|
2012-01-06 06:18:55 +01:00
|
|
|
end
|
|
|
|
|
2014-06-17 06:44:14 +02:00
|
|
|
proxy "明日がある.html", "/real.html", layout: false
|
2012-04-02 05:52:22 +02:00
|
|
|
|
2014-05-27 02:58:35 +02:00
|
|
|
page "f*/*", locals: { all_glob: "I am all glob" }
|
|
|
|
page "fake/*", locals: { glob_var: "I am one glob" }
|
|
|
|
page "fake2/*", locals: { glob_var: "I am two glob" }
|
|
|
|
page "fake3/*", locals: { glob_var: "I am three glob" }
|
|
|
|
page "fake4/*", locals: { glob_var: "I am four glob" }
|
2016-03-18 18:37:02 +01:00
|
|
|
|
|
|
|
["tom", "dick", "harry"].each do |name|
|
|
|
|
proxy "/about/#{name}.html", "/should_be_ignored9.html", locals: { person_name: name }, ignore: true
|
|
|
|
end
|