diff --git a/src/main/java/com/hubspot/jinjava/lib/tag/eager/EagerCallTag.java b/src/main/java/com/hubspot/jinjava/lib/tag/eager/EagerCallTag.java index 7e912d30c..128289fd5 100644 --- a/src/main/java/com/hubspot/jinjava/lib/tag/eager/EagerCallTag.java +++ b/src/main/java/com/hubspot/jinjava/lib/tag/eager/EagerCallTag.java @@ -7,6 +7,7 @@ import com.hubspot.jinjava.interpret.JinjavaInterpreter.InterpreterScopeClosable; import com.hubspot.jinjava.lib.expression.EagerExpressionStrategy; import com.hubspot.jinjava.lib.fn.MacroFunction; +import com.hubspot.jinjava.lib.fn.eager.EagerMacroFunction; import com.hubspot.jinjava.lib.tag.CallTag; import com.hubspot.jinjava.lib.tag.FlexibleTag; import com.hubspot.jinjava.tree.TagNode; @@ -45,7 +46,7 @@ public String eagerInterpret( LengthLimitingStringJoiner joiner; try (InterpreterScopeClosable c = interpreter.enterNonStackingScope()) { caller = - new MacroFunction( + new EagerMacroFunction( tagNode.getChildren(), "caller", new LinkedHashMap<>(), diff --git a/src/main/java/com/hubspot/jinjava/lib/tag/eager/EagerFromTag.java b/src/main/java/com/hubspot/jinjava/lib/tag/eager/EagerFromTag.java index 937a4ca17..0b45a0a59 100644 --- a/src/main/java/com/hubspot/jinjava/lib/tag/eager/EagerFromTag.java +++ b/src/main/java/com/hubspot/jinjava/lib/tag/eager/EagerFromTag.java @@ -6,6 +6,7 @@ import com.hubspot.jinjava.interpret.InterpretException; import com.hubspot.jinjava.interpret.JinjavaInterpreter; import com.hubspot.jinjava.lib.fn.MacroFunction; +import com.hubspot.jinjava.lib.fn.eager.EagerMacroFunction; import com.hubspot.jinjava.lib.tag.DoTag; import com.hubspot.jinjava.lib.tag.FromTag; import com.hubspot.jinjava.loader.RelativePathResolver; @@ -41,7 +42,7 @@ public String getEagerTagImage(TagToken tagToken, JinjavaInterpreter interpreter imports .values() .forEach(value -> { - MacroFunction deferredMacro = new MacroFunction( + MacroFunction deferredMacro = new EagerMacroFunction( null, value, null,