Merge pull request #620 from bhollis/config

Move config settings into a separate object
This commit is contained in:
Thomas Reynolds 2012-10-14 12:52:19 -07:00
commit af81b588d5
30 changed files with 374 additions and 186 deletions

View file

@ -62,7 +62,7 @@ module Middleman::CoreExtensions
def clear_data(file)
# Copied from Sitemap::Store#file_to_path, but without
# removing the file extension
file = File.expand_path(file, @app.root)
file = File.join(@app.root, file)
prefix = @app.source_dir.sub(/\/$/, "") + "/"
return unless file.include?(prefix)
path = file.sub(prefix, "")