-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Differentiate between null and missing values
Currently, we would get a VariableNotExistException when in strict mode, even if a page property, for example, is knowingly set to null. This is specifically important since {% if val %} returns true even for empty strings, making it almost impossible to avoid an exception and still support properties like page.last_modified_at. Introduce a "found" state when traversing structures, and only consider a non-existant variable if found=false This change breaks backwards compatibility with classes implementing LookupNode.Indexable. This is considered low-risk at the moment.
- Loading branch information
1 parent
4dd315e
commit 0d572d1
Showing
2 changed files
with
27 additions
and
15 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