class Middleman::CoreExtensions::DefaultHelpers

def url_for(path_or_resource, options={})

path, respecting :relative_links, directory indexes, etc.
or a Resource, this will produce the nice URL configured for that
Given a source path (referenced either absolutely or relatively)
def url_for(path_or_resource, options={})
  options_with_resource = options.dup
  options_with_resource[:current_resource] ||= current_resource
  ::Middleman::Util.url_for(self, path_or_resource, options_with_resource)
end