Sha256: d17c450c60ee4186b45493a15accd610b276383ba7c53a4b547e8a4915ebf279

Contents?: true

Size: 583 Bytes

Versions: 6

Compression:

Stored size: 583 Bytes

Contents

# ----------------------------------------------------------------------------
# Frozen-string-literal: true
# Copyright: 2012 - 2016 - MIT License
# Encoding: utf-8
# ----------------------------------------------------------------------------

module Sprockets
  class Asset
    def liquid_tags
      metadata[:liquid_tags] ||= begin
        Set.new
      end
    end

    # ------------------------------------------------------------------------

    def data_uri
      "data:#{content_type};base64,#{Rack::Utils.escape(
        Base64.encode64(to_s)
      )}"
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jekyll-assets-2.2.5 lib/jekyll/assets/patches/sprockets/asset.rb
jekyll-assets-2.2.4 lib/jekyll/assets/patches/sprockets/asset.rb
jekyll-assets-2.2.3 lib/jekyll/assets/patches/sprockets/asset.rb
jekyll-assets-2.2.2 lib/jekyll/assets/patches/sprockets/asset.rb
jekyll-assets-2.2.1 lib/jekyll/assets/patches/sprockets/asset.rb
jekyll-assets-2.2.0 lib/jekyll/assets/patches/sprockets/asset.rb