Sha256: 3902abb3a8428ba05826cea2fe7d83853f57b33ea8fbda5d25ad864b355a1216

Contents?: true

Size: 602 Bytes

Versions: 6

Compression:

Stored size: 602 Bytes

Contents

# internal
require "jekyll/assets_plugin/renderer"

module Jekyll
  module AssetsPlugin
    module Filters
      %w(asset asset_path image javascript stylesheet).each do |name|
        module_eval <<-RUBY, __FILE__, __LINE__
        def #{name} path                    # def stylesheet logical_path
          r = Renderer.new @context, path   #   r = Renderer.new @context, path
          r.render_#{name}                  #   r.render_stylesheet
        end                                 # end
        RUBY
      end
    end
  end
end

Liquid::Template.register_filter Jekyll::AssetsPlugin::Filters

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jekyll-assets-0.14.0 lib/jekyll/assets_plugin/filters.rb
jekyll-assets-0.13.0 lib/jekyll/assets_plugin/filters.rb
jekyll-assets-0.12.1 lib/jekyll/assets_plugin/filters.rb
jekyll-assets-0.12.0 lib/jekyll/assets_plugin/filters.rb
jekyll-assets-0.11.0 lib/jekyll/assets_plugin/filters.rb
jekyll-assets-0.10.1 lib/jekyll/assets_plugin/filters.rb