require "kilt/liquid"
# With default values
liquid_renderer = Onyx::REST::Renderers::Template.new("text/html; charset=utf-8") do |error|
render("./error.html.liquid")
end
# Or just
liquid_renderer = Onyx::REST::Renderers::Template.new
And with macros:
# With default values
Onyx.render(:liquid, "text/html; charset=utf-8") do |error|
render("./error.html.liquid")
end
# Or just
Onyx.render(:liquid)
Expands to:
require "kilt/liquid"
renderer = Onyx::REST::Renderers::Template.new("text/html; charset=utf-8") do |error|
render("./error.html.liquid")
end
Should rely on Kilt, I guess.
And with macros:
Expands to: