Class: Jekyll::Renderer

Inherits:
Object
  • Object
show all
Defined in:
lib/octopress-hooks.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#outputObject

Returns the value of attribute output.



273
274
275
# File 'lib/octopress-hooks.rb', line 273

def output
  @output
end

Instance Method Details

#old_render_liquidObject



272
# File 'lib/octopress-hooks.rb', line 272

alias_method :old_render_liquid, :render_liquid

#render_liquid(content, payload, info, path = nil) ⇒ Object



275
276
277
278
279
280
281
282
283
# File 'lib/octopress-hooks.rb', line 275

def render_liquid(content, payload, info, path = nil)
  document.pre_render if document.respond_to?(:pre_render) && document.hooks

  if document.respond_to?(:merge_payload) && document.hooks
    old_render_liquid(document.content, document.merge_payload(payload.dup), info)
  else
    old_render_liquid(document.content, payload, info)
  end
end