-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cloneWithNewName to let successfully from-imported macros be
imported as EagerMacroFunction to avoid ClassCastException
- Loading branch information
1 parent
e212f2f
commit 62bf49b
Showing
8 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/test/resources/eager/handles-deferred-modification-in-caller/test.expected.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
src/test/resources/eager/reconstructs-fromed-macro/has-macro.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% macro upper(param) %} | ||
{{ param|upper }} | ||
{% endmacro %} |
6 changes: 6 additions & 0 deletions
6
src/test/resources/eager/reconstructs-fromed-macro/test.expected.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{% set deferred_import_resource_path = 'eager/reconstructs-fromed-macro/has-macro.jinja' %}\ | ||
{% macro to_upper(param) %} | ||
{{ filter:upper.filter(param, ____int3rpr3t3r____) }} | ||
{% endmacro %}\ | ||
{% set deferred_import_resource_path = null %}\ | ||
{{ to_upper(deferred) }} |
3 changes: 3 additions & 0 deletions
3
src/test/resources/eager/reconstructs-fromed-macro/test.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{% from './has-macro.jinja' import upper as to_upper %} | ||
|
||
{{ to_upper(deferred) }} |