Sha256: 7cd57d0b874e496a92a80ec323457ecec98a960dc48fc8a093347025d7e1a136

Contents?: true

Size: 579 Bytes

Versions: 7

Compression:

Stored size: 579 Bytes

Contents

# encoding: utf-8

require 'sass/script/functions'

module Sass::Script::Functions
  def asset_path(source)
    Sass::Script::String.new(ClassyAssets.asset_url_for(source.value), :string)
  end
  
  def asset_url(source)
    Sass::Script::String.new(%Q{url("#{ClassyAssets.asset_url_for(source.value)}")}, :string)
  end

  def asset_data_uri(source)
    Sass::Script::String.new(%Q{url("#{ClassyAssets.asset_data_uri_for(path.value)}")}, :string)
  end

  declare :asset_path, args: [:source]
  declare :asset_url, args: [:source]
  declare :asset_data_uri, args: [:source]
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
classy_assets-0.7.1 lib/classy_assets/sass/script/functions.rb
classy_assets-0.7.0 lib/classy_assets/sass/script/functions.rb
classy_assets-0.6.3 lib/classy_assets/sass/script/functions.rb
classy_assets-0.6.2 lib/classy_assets/sass/script/functions.rb
classy_assets-0.6.1 lib/classy_assets/sass/script/functions.rb
classy_assets-0.6.0 lib/classy_assets/sass/script/functions.rb
classy_assets-0.5.0 lib/classy_assets/sass/script/functions.rb