Class: Jekyll::Engine::Liquid
Instance Attribute Summary
Attributes inherited from Base
#content, #data, #info, #payload
Instance Method Summary collapse
-
#render(content = content) ⇒ Object
call-seq: engine.render engine.render(content).
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 |