-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganise variable processing (part 2)
Processing page variables involves a two step process. The first step extracts and renders locally declared page variables in <variable> tags, using javascript proxies to force imported variables to re-render as themselves again, which decreases code clarity. The second step then extracts the imported variables, and stores such variables into an alias map, then re-rendering the page a second time. This process can be combined into a single pass to simplify the process greatly and remove the need for workarounds like proxies. This also increases rendering performance slightly, as only a single pass is made Moreover, variable tags in <include> tags are erroneously recognised as page variables. Let's include a simple fix for this as well.
- Loading branch information
Showing
9 changed files
with
208 additions
and
276 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
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
Oops, something went wrong.