Sha256: 281ee68377f5f12a5df67e6c0a6aa397461ada42493a6f8cf4c1e485dbe24106

Contents?: true

Size: 535 Bytes

Versions: 1

Compression:

Stored size: 535 Bytes

Contents

# internal
require 'jekyll/assets_plugin/renderer'


module Jekyll
  module AssetsPlugin
    module Filters
      %w{ asset asset_path 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-assets-0.3.0 lib/jekyll/assets_plugin/filters.rb