-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for "sane" strict variable checks
The current "strict variables" checking strategy in Liquid Templates is somewhat unusable as one cannot even check for the existence of an object property without raising an error in strict mode. This is a known limitation, and actively being discussed upstream (liquid issue 1034). Several Jekyll template make use of checks like {% if page.mermaid %}, etc., preventing enforcement of strict mode. This patch adds a "sane" strict variable policy, which allows for such checks to succeed. Since this is new functionality specific to liqp, we keep the existing strict mode configuration unchanged. Shopify/liquid#1034
- Loading branch information
1 parent
0d572d1
commit 9afde46
Showing
3 changed files
with
117 additions
and
14 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