2011-11-10 15:56:04 -08:00
|
|
|
require "slim"
|
|
|
|
require "liquid"
|
|
|
|
require "coffee-filter"
|
|
|
|
|
2011-07-23 22:21:52 -07:00
|
|
|
page "/fake.html", :proxy => "/real.html", :layout => false
|
|
|
|
|
2011-07-27 14:14:22 -07: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-23 22:21:52 -07:00
|
|
|
%w(one two).each do |num|
|
|
|
|
page "/fake/#{num}.html", :proxy => "/real/index.html" do
|
|
|
|
@num = num
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2011-11-26 18:12:15 -08:00
|
|
|
with_layout :content_for do
|
|
|
|
page "/content_for_erb.html"
|
|
|
|
page "/content_for_haml.html"
|
|
|
|
page "/content_for_slim.html"
|
|
|
|
end
|
|
|
|
|
2009-11-30 11:32:02 -08:00
|
|
|
with_layout false do
|
2011-12-09 10:25:51 -08:00
|
|
|
page "/request-path.html"
|
2011-12-01 08:43:26 -08:00
|
|
|
page "/lorem.html"
|
2011-07-23 22:49:32 -07:00
|
|
|
page "/relative_image.html"
|
2009-11-30 11:32:02 -08:00
|
|
|
page "/inline-css.html"
|
|
|
|
page "/inline-js.html"
|
2011-05-22 17:27:39 +02:00
|
|
|
page "/inline-coffeescript.html"
|
2011-07-22 11:43:00 -07:00
|
|
|
page "/spaces in file.html"
|
2011-06-02 10:48:56 -07:00
|
|
|
page "/slim.html"
|
2011-07-06 10:29:07 -07:00
|
|
|
page "/data.html"
|
2011-09-06 11:12:20 -07:00
|
|
|
page "/data2.html"
|
2011-09-12 10:20:34 -07:00
|
|
|
page "/data3.html"
|
2011-09-08 23:06:22 -07:00
|
|
|
page "/liquid_master.html"
|
2011-07-06 22:41:12 -07:00
|
|
|
page "/page-classes.html"
|
|
|
|
page "/sub1/page-classes.html"
|
|
|
|
page "/sub1/sub2/page-classes.html"
|
2009-11-03 12:49:54 -08:00
|
|
|
|
2011-07-06 22:41:12 -07: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 12:49:54 -08:00
|
|
|
|
2011-07-06 22:41:12 -07: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
|
|
|
|
end
|