Class: Jekyll::Engine::Liquid

Inherits:
Base
  • Object
show all
Defined in:
lib/jekyll/rendering.rb

Instance Attribute Summary

Attributes inherited from Base

#content, #data, #info, #payload

Instance Method Summary collapse

Methods inherited from Base

#initialize, render, #render_error

Constructor Details

This class inherits a constructor from Jekyll::Engine::Base

Instance Method Details

#render(content = content) ⇒ Object

call-seq:

engine.render
engine.render(content)

Renders the content using ::Liquid::Template::parse and then calling ::Liquid::Template#render with payload and info.



143
144
145
146
147
# File 'lib/jekyll/rendering.rb', line 143

def render(content = content)
  ::Liquid::Template.parse(content).render(payload, info)
rescue => err
  render_error(err)
end