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.



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

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

#old_runObject



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

alias_method :old_run, :run

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



281
282
283
284
285
286
287
# File 'lib/octopress-hooks.rb', line 281

def render_liquid(content, payload, info, path = nil)
  if document.respond_to?(:merge_payload) && document.hooks
    old_render_liquid(content, document.merge_payload(payload.dup), info)
  else
    old_render_liquid(content, payload, info)
  end
end

#runObject



276
277
278
279
# File 'lib/octopress-hooks.rb', line 276

def run
  document.pre_render if document.respond_to?(:pre_render) && document.hooks
  old_run
end