remove dup methods from base

This commit is contained in:
Thomas Reynolds 2011-11-20 17:30:53 -08:00
parent 51cb3980bc
commit 1fbeedb573
4 changed files with 16 additions and 85 deletions

View file

@ -54,10 +54,8 @@ module Middleman::CoreExtensions::DefaultHelpers
path = path.sub(%r{^/}, '')
path = path.gsub(File.extname(path), ".#{asset_ext}")
path = path.gsub("/", separator)
matching_file = resolve_template(File.join(asset_dir, path))
yield path if matching_file
yield path if sitemap.exists?(File.join(asset_dir, path))
end
def page_classes