Sha256: d76a7c90d17444a5a0922c1e215f1dc95366eb2cf12bf0b6e898ffc4cc2efec3

Contents?: true

Size: 398 Bytes

Versions: 21

Compression:

Stored size: 398 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{ javascript stylesheet asset asset_path }.each do |tag|
  Liquid::Template.register_tag tag, Jekyll::AssetsPlugin::Tag
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
jekyll-assets-0.4.3 lib/jekyll/assets_plugin/tag.rb
jekyll-assets-0.7.1 lib/jekyll/assets_plugin/tag.rb
jekyll-assets-0.7.0 lib/jekyll/assets_plugin/tag.rb
jekyll-assets-0.6.1 lib/jekyll/assets_plugin/tag.rb
jekyll-assets-0.6.0 lib/jekyll/assets_plugin/tag.rb
jekyll-assets-0.5.4 lib/jekyll/assets_plugin/tag.rb
jekyll-assets-0.5.3 lib/jekyll/assets_plugin/tag.rb
jekyll-assets-0.5.2 lib/jekyll/assets_plugin/tag.rb
jekyll-assets-0.5.1 lib/jekyll/assets_plugin/tag.rb
jekyll-assets-0.5.0 lib/jekyll/assets_plugin/tag.rb
jekyll-assets-0.4.2 lib/jekyll/assets_plugin/tag.rb
jekyll-assets-0.4.1 lib/jekyll/assets_plugin/tag.rb
jekyll-assets-0.4.0 lib/jekyll/assets_plugin/tag.rb
jekyll-assets-0.3.8 lib/jekyll/assets_plugin/tag.rb
jekyll-assets-0.3.7 lib/jekyll/assets_plugin/tag.rb
jekyll-assets-0.3.6 lib/jekyll/assets_plugin/tag.rb
jekyll-assets-0.3.5 lib/jekyll/assets_plugin/tag.rb
jekyll-assets-0.3.4 lib/jekyll/assets_plugin/tag.rb
jekyll-assets-0.3.3 lib/jekyll/assets_plugin/tag.rb
jekyll-assets-0.3.2 lib/jekyll/assets_plugin/tag.rb