Sha256: b0b04e5c80b60ff9ac382925e0696a8783d1187cfaffa2698f382eb92f09a5aa

Contents?: true

Size: 310 Bytes

Versions: 8

Compression:

Stored size: 310 Bytes

Contents

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

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

    #

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
jekyll-assets-2.1.3 lib/jekyll/assets/patches/sprockets/asset.rb
jekyll-assets-2.1.2 lib/jekyll/assets/patches/sprockets/asset.rb
jekyll-assets-2.1.1 lib/jekyll/assets/patches/sprockets/asset.rb
jekyll-assets-2.1.0 lib/jekyll/assets/patches/sprockets/asset.rb
jekyll-assets-2.0.3 lib/jekyll/assets/patches/sprockets/asset.rb
jekyll-assets-2.0.2 lib/jekyll/assets/patches/sprockets/asset.rb
jekyll-assets-2.0.1 lib/jekyll/assets/patches/sprockets/asset.rb
jekyll-assets-2.0.0 lib/jekyll/assets/patches/sprockets/asset.rb