middleman/fixtures/test-app/config.rb

44 lines
823 B
Ruby
Raw Normal View History

page "/fake.html", :proxy => "/real.html", :layout => false
%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 "/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 "/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