Proxy Convertible#render_liquid to Renderer
This commit is contained in:
parent
d0f57b61d4
commit
8496e2e8b6
|
@ -103,17 +103,7 @@ module Jekyll
|
||||||
#
|
#
|
||||||
# Returns the converted content
|
# Returns the converted content
|
||||||
def render_liquid(content, payload, info, path)
|
def render_liquid(content, payload, info, path)
|
||||||
template = site.liquid_renderer.file(path).parse(content)
|
_renderer.render_liquid(content, payload, info, path)
|
||||||
template.warnings.each do |e|
|
|
||||||
Jekyll.logger.warn "Liquid Warning:",
|
|
||||||
LiquidRenderer.format_error(e, path || self.path)
|
|
||||||
end
|
|
||||||
template.render!(payload, info)
|
|
||||||
# rubocop: disable RescueException
|
|
||||||
rescue Exception => e
|
|
||||||
Jekyll.logger.error "Liquid Exception:",
|
|
||||||
LiquidRenderer.format_error(e, path || self.path)
|
|
||||||
raise e
|
|
||||||
end
|
end
|
||||||
# rubocop: enable RescueException
|
# rubocop: enable RescueException
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue