class Jekyll::Fragment
Public Class Methods
new(tag_name, markup, options)
click to toggle source
Calls superclass method
Jekyll::FragmentBlock::new
# File lib/jekyll-dry.rb, line 102 def initialize(tag_name, markup, options) super @fragment_id, _ = markup.strip.split(%r!\s+!, 2) end
Public Instance Methods
render(context)
click to toggle source
Calls superclass method
# File lib/jekyll-dry.rb, line 107 def render(context) output = super #context[@fragment_id] = output #context.resource_limits.assign_score += output.length output end