middleman/fixtures/test-app/config.rb

57 lines
1.1 KiB
Ruby
Raw Normal View History

2011-11-11 00:56:04 +01:00
require "maruku"
require "slim"
require "liquid"
require "coffee-filter"
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
%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
page "/markdown.html"
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"
page "/slim.html"
2011-07-06 19:29:07 +02:00
page "/data.html"
page "/data2.html"
2011-09-12 19:20:34 +02:00
page "/data3.html"
page "/liquid_master.html"
page "/page-classes.html"
page "/sub1/page-classes.html"
page "/sub1/sub2/page-classes.html"
2009-11-03 21:49:54 +01: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
%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
get "/sinatra_test" do
"Ratpack"
end