From 1362a1fc81b6aba71ab6d14b97205df35ad40d53 Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Thu, 2 May 2013 18:59:39 -0700 Subject: [PATCH] Update default config.rb to be a bit more modern --- .../lib/middleman-core/templates/shared/config.tt | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/middleman-core/lib/middleman-core/templates/shared/config.tt b/middleman-core/lib/middleman-core/templates/shared/config.tt index 37737efa..c050fef1 100755 --- a/middleman-core/lib/middleman-core/templates/shared/config.tt +++ b/middleman-core/lib/middleman-core/templates/shared/config.tt @@ -24,10 +24,9 @@ # page "/admin/*" # end -# Proxy (fake) files -# page "/this-page-has-no-template.html", :proxy => "/template-file.html" do -# @which_fake_page = "Rendering a fake page with a variable" -# end +# Proxy pages (http://middlemanapp.com/dynamic-pages/) +# proxy "/this-page-has-no-template.html", "/template-file.html", :locals => { +# :which_fake_page => "Rendering a fake page with a local variable" } ### # Helpers @@ -36,8 +35,7 @@ # Automatic image dimensions on image_tag helper # activate :automatic_image_sizes -# Enable middleman-livereload -# First: add it to your Gemfile and run bundle install +# Reload the browser automatically whenever files change # activate :livereload # Methods defined in the helpers block are available in templates @@ -77,7 +75,7 @@ configure :build do # activate :minify_javascript # Enable cache buster - # activate :cache_buster + # activate :asset_hash # Use relative URLs # activate :relative_assets