Sha256: 2c803732db65f8158e19c09e152ac8c68f490e2352242bacf182441147e93a27

Contents?: true

Size: 404 Bytes

Versions: 5

Compression:

Stored size: 404 Bytes

Contents

# 3rd-party
require "liquid"


# internal
require "jekyll/assets_plugin/renderer"


module Jekyll
  module AssetsPlugin
    class Tag < Liquid::Tag

      def render context
        Renderer.new(context, @markup).send :"render_#{@tag_name}"
      end

    end
  end
end


%w{ asset asset_path image javascript stylesheet }.each do |tag|
  Liquid::Template.register_tag tag, Jekyll::AssetsPlugin::Tag
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
jekyll-assets-0.7.6 lib/jekyll/assets_plugin/tag.rb
jekyll-assets-0.7.5 lib/jekyll/assets_plugin/tag.rb
jekyll-assets-0.7.4 lib/jekyll/assets_plugin/tag.rb
jekyll-assets-0.7.3 lib/jekyll/assets_plugin/tag.rb
jekyll-assets-0.7.2 lib/jekyll/assets_plugin/tag.rb