This repository has been archived by the owner on Jun 4, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get {% query %} to work with {% macro %} (as well as {% with %} & {% …
…trans %}. These all use the same runtime node with their real implementation being done at compile time (except for {% with %} which lets you instantiate the AST node directly). The main challenge here was around inlining variables within others. For that I defined a new method on variables which'll try and detect whether it actually needs to build a new one (to save memory), before it copies over the data from the variable context and extend it to have the new filters (with recursive inlining) and path traversal (implemented as a behind-the-scenes filter). Simplified Odysseus.Templating.Variable.nilvar initialization.
- Loading branch information
Adrian Cochrane
committed
Mar 18, 2018
1 parent
4fca870
commit dab7b04
Showing
3 changed files
with
80 additions
and
11 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