discourse/lib/stylesheet/functions.rb

Failed to ignore revisions in .git-blame-ignore-revs.

15 lines
419 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Stylesheet
module ScssFunctions
def asset_url(path)
2019-03-20 12:04:26 -04:00
SassC::Script::Value::String.new("url('#{ActionController::Base.helpers.asset_url(path.value)}')")
2017-05-01 15:31:51 -04:00
end
def image_url(path)
2019-03-20 12:04:26 -04:00
SassC::Script::Value::String.new("url('#{ActionController::Base.helpers.image_url(path.value)}')")
end
end
end
::SassC::Script::Functions.include(Stylesheet::ScssFunctions)