make assets a core ext

This commit is contained in:
Thomas Reynolds 2011-07-06 10:40:17 -07:00
parent 59a07d4cc0
commit 118d23be41
9 changed files with 79 additions and 58 deletions

View file

@ -56,10 +56,6 @@ module Middleman::CoreExtensions::DefaultHelpers
classes.join(' ')
end
def asset_url(path, prefix="")
Middleman::Assets.get_url(path, prefix, request)
end
# Padrino's asset handling needs to pass through ours
def asset_path(kind, source)
return source if source =~ /^http/