mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
42e31c8c5e
* Make .html implicit for page IDs * Add Pry gem * Add setting :page_id_generator to override page ID derivation
7 lines
179 B
Ruby
7 lines
179 B
Ruby
%w(1 2 3).each do |n|
|
|
proxy "/#{n}.html", "/index.html", id: "page#{n}"
|
|
end
|
|
|
|
page "/overwrites/*", id: :"something-else"
|
|
|
|
config[:page_id_generator] = ->(path){ path + "-foo" }
|