Fix constructor argument

This commit is contained in:
Bryn Rhodes 2022-02-23 20:20:38 -07:00
parent 8212604250
commit 778738d3ac
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ public class LiquidRenderer extends ResourceRenderer {
LiquidEngine engine = new LiquidEngine(context.getWorker(), context.getServices()); LiquidEngine engine = new LiquidEngine(context.getWorker(), context.getServices());
XhtmlNode xn; XhtmlNode xn;
try { try {
engine.setIncludeResolver(new LiquidRendererIncludeResolver(context.getTemplateProvider())); engine.setIncludeResolver(new LiquidRendererIncludeResolver(context));
LiquidDocument doc = engine.parse(liquidTemplate, "template"); LiquidDocument doc = engine.parse(liquidTemplate, "template");
String html = engine.evaluate(doc, r, rcontext); String html = engine.evaluate(doc, r, rcontext);
xn = new XhtmlParser().parseFragment(html); xn = new XhtmlParser().parseFragment(html);