-
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.
Don't cause set tags for current_path to disappear in nested
interpretation
- Loading branch information
1 parent
d0f329e
commit bc15907
Showing
4 changed files
with
25 additions
and
8 deletions.
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
8 changes: 5 additions & 3 deletions
8
...urces/eager/wraps-macro-that-would-change-current-path-in-child-scope/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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
Starting current_path: starting path | ||
Intermediate current_path: starting path | ||
Starting current_path: eager/wraps-macro-that-would-change-current-path-in-child-scope/test.jinja | ||
Intermediate current_path: eager/wraps-macro-that-would-change-current-path-in-child-scope/test.jinja | ||
{% for __ignored__ in [0] %}\ | ||
{% set __temp_meta_current_path_629250870__,current_path = 'eager/wraps-macro-that-would-change-current-path-in-child-scope/test.jinja', 'eager/wraps-macro-that-would-change-current-path-in-child-scope/dir2/included.jinja' %}\ | ||
{% set foo = deferred %} | ||
{{ foo }}\ | ||
{% set current_path,__temp_meta_current_path_629250870__ = 'eager/wraps-macro-that-would-change-current-path-in-child-scope/test.jinja', null %}\ | ||
{% print foo %}\ | ||
{% endfor %} | ||
Ending current_path: starting path | ||
Ending current_path: eager/wraps-macro-that-would-change-current-path-in-child-scope/test.jinja |