Class: Jekyll::Renderer
- Inherits:
-
Object
- Object
- Jekyll::Renderer
- Defined in:
- lib/octopress-hooks.rb
Instance Attribute Summary collapse
-
#output ⇒ Object
Returns the value of attribute output.
Instance Method Summary collapse
- #old_render_liquid ⇒ Object
- #old_run ⇒ Object
- #render_liquid(content, payload, info, path = nil) ⇒ Object
- #run ⇒ Object
Instance Attribute Details
#output ⇒ Object
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_liquid ⇒ Object
300 |
# File 'lib/octopress-hooks.rb', line 300 alias_method :old_render_liquid, :render_liquid |
#old_run ⇒ Object
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 |
#run ⇒ Object
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 |