README.md in munge-0.6.0 vs README.md in munge-0.7.0

- old
+ new

@@ -57,26 +57,26 @@ Here's an example `rules.rb` for a blog. ```ruby # home page -app.source +app.unrouted .select { |item| item.id == "home" } # looks for items where path is "src/home.*" .each { |item| item.route = "" } # sets output file to "/index.html" .each { |item| item.layout = "default"} # sets layout to "layouts/default.*" .each { |item| item[:title] = "home" } # sets additional frontmatter variables .each { |item| item.transform(:tilt) } # have Tilt compile this file # blog posts -app.source +app.unrouted .select { |item| item.relpath?("posts") } # looks for items in "src/posts/**/*" .each { |item| item.route = "blog/#{item.basename}" } # sets output file to "/blog/#{basename}/index.html" .each { |item| item.layout = "post" } .each { |item| item.transform } # sets transform to Tilt (default) # blog index posts_for_index = - app.source + app.routed .select { |item| item.route?("blog") } .sort_by { |item| item.route } .reverse app.create("blog/index.html.erb", "", posts: posts_for_index) do |item|