make assets a core ext
This commit is contained in:
parent
59a07d4cc0
commit
118d23be41
9 changed files with 79 additions and 58 deletions
|
@ -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/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue