Sha256: 8107c7ccd48e1ff495201f4f54923a443ed1c0c7cd7effeec9d965569fbfea09

Contents?: true

Size: 467 Bytes

Versions: 7

Compression:

Stored size: 467 Bytes

Contents

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

require_relative "context"
require_relative "tag"

module Jekyll
  module Assets
    module Filters
      def asset(path, args = "")
        args = "#{path} #{args}"
        ctx = Liquid::ParseContext.new
        tag = Tag.new("asset", args, ctx)
        tag.render(@context)
      end
    end
  end
end

filter = Jekyll::Assets::Filters
Liquid::Template.register_filter(filter)

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
jekyll-assets-3.0.12 lib/jekyll/assets/filters.rb
jekyll-assets-3.0.11 lib/jekyll/assets/filters.rb
jekyll-assets-3.0.10 lib/jekyll/assets/filters.rb
jekyll-assets-3.0.9 lib/jekyll/assets/filters.rb
jekyll-assets-3.0.8 lib/jekyll/assets/filters.rb
jekyll-assets-3.0.7 lib/jekyll/assets/filters.rb
jekyll-assets-3.0.6 lib/jekyll/assets/filters.rb