module Middleman::Sass::Functions

def font_path(source, options={})


src: url(font-path("font.ttf", $digest: true)); // src: url("/assets/font-27a8f1f96afd8d4c67a59eb9447f45bd.ttf");
src: url(font-path("font.ttf")); // src: url("/assets/font.ttf");

=== Examples

arguments that mirror the +options+.
for the given +source+ as a Sass String. This supports keyword
Using Middleman::Util#asset_path, return the full path
def font_path(source, options={})
  p = ::Middleman::Util.asset_path(middleman_context, :fonts, source.value, map_options(options))
  ::SassC::Script::Value::String.new p.to_s, :string
end