Skip to content

Commit edbcaa3

Browse files
committed
Use refactored static method
1 parent db765bf commit edbcaa3

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/main/java/com/hubspot/jinjava/lib/fn/eager/EagerMacroFunction.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,7 @@ public String reconstructImage() {
114114
EagerTagDecorator.buildSetTagForDeferredInChildContext(
115115
ImmutableMap.of(
116116
Context.DEFERRED_IMPORT_RESOURCE_PATH_KEY,
117-
interpreter
118-
.getContext()
119-
.getPyishObjectMapper()
120-
.getAsPyishString(importFile.get())
117+
PyishObjectMapper.getAsPyishString(importFile.get())
121118
),
122119
interpreter,
123120
false
@@ -126,10 +123,7 @@ public String reconstructImage() {
126123
EagerTagDecorator.buildSetTagForDeferredInChildContext(
127124
ImmutableMap.of(
128125
Context.DEFERRED_IMPORT_RESOURCE_PATH_KEY,
129-
interpreter
130-
.getContext()
131-
.getPyishObjectMapper()
132-
.getAsPyishString(currentDeferredImportResource)
126+
PyishObjectMapper.getAsPyishString(currentDeferredImportResource)
133127
),
134128
interpreter,
135129
false

src/test/resources/tags/macrotag/two-macros.jinja

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{% macro macro1(options={}) %}
22
<!-- code here, renders HTML -->
33
{% endmacro %}
4+
45
{% macro macro2(options={}) %}
56
<!-- some code, mainly formats passed options -->
67

0 commit comments

Comments
 (0)