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.



302
303
304
# File 'lib/octopress-hooks.rb', line 302

def output
  @output
end

Instance Method Details

#old_render_liquidObject



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

alias_method :old_render_liquid, :render_liquid

#old_runObject



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

alias_method :old_run, :run

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



309
310
311
312
313
314
315
# File 'lib/octopress-hooks.rb', line 309

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



304
305
306
307
# File 'lib/octopress-hooks.rb', line 304

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