Sha256: a0839f1f83514d55d9a9809f7f52036abb639002b869aaa390e1a857ef3fa3ba

Contents?: true

Size: 1.22 KB

Versions: 3

Compression:

Stored size: 1.22 KB

Contents

require "slim"
require "liquid"
require "coffee-filter"

page "/fake.html", :proxy => "/real.html", :layout => false

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

with_layout :content_for do
  page "/content_for_erb.html"
  page "/content_for_haml.html"
  page "/content_for_slim.html"
end

with_layout false do
  page "/request-path.html"
  page "/lorem.html"
  page "/relative_image.html"
  page "/inline-css.html"
  page "/inline-js.html"
  page "/inline-coffeescript.html"
  page "/spaces in file.html"
  page "/slim.html"
  page "/data.html"
  page "/data2.html"
  page "/data3.html"
  page "/liquid_master.html"
  page "/page-classes.html"
  page "/sub1/page-classes.html"
  page "/sub1/sub2/page-classes.html"

  %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

  %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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
middleman-3.0.0.alpha.6 fixtures/test-app/config.rb
middleman-3.0.0.alpha.5 fixtures/test-app/config.rb
middleman-3.0.0.alpha.4 fixtures/test-app/config.rb