class Sprockets::Asset

Public Instance Methods

data_uri() click to toggle source

– Pull out the data uri. @return [String] –

# File lib/jekyll/assets/patches/sprockets/asset.rb, line 22
def data_uri
  "data:#{content_type};base64,#{Rack::Utils.escape(
    Base64.encode64(to_s)
  )}"
end
liquid_tags() click to toggle source

– List all the liquid tags this asset used. –

# File lib/jekyll/assets/patches/sprockets/asset.rb, line 11
def liquid_tags
  metadata[:liquid_tags] ||= begin
    Set.new
  end
end