summaryrefslogtreecommitdiff
path: root/specs/sections.json
diff options
context:
space:
mode:
authorDan Appel <Dan.appel00@gmail.com>2021-05-02 16:19:05 -0700
committerGitHub <noreply@github.com>2021-05-02 16:19:05 -0700
commit84f81d1252d0dd064f672ff4d52d09078826c0cd (patch)
treec7e752e4c61ecdea56908366b5c1d22aa559e173 /specs/sections.json
parent63c0bde1f4e2f8ee26cf2d869dcb0f4fc215646d (diff)
parent300984b04c0c1efafc75f4dcf7f7af5b64952882 (diff)
downloadmustache-spec-84f81d1252d0dd064f672ff4d52d09078826c0cd.tar.gz
Merge pull request #123 from jgonggrijp/null-interpolation
Specify how to interpolate null (#101)
Diffstat (limited to 'specs/sections.json')
-rw-r--r--specs/sections.json9
1 files changed, 9 insertions, 0 deletions
diff --git a/specs/sections.json b/specs/sections.json
index 73eb2a4..3acc414 100644
--- a/specs/sections.json
+++ b/specs/sections.json
@@ -21,6 +21,15 @@
"expected": "\"\""
},
{
+ "name": "Null is falsey",
+ "desc": "Null is falsey.",
+ "data": {
+ "null": null
+ },
+ "template": "\"{{#null}}This should not be rendered.{{/null}}\"",
+ "expected": "\"\""
+ },
+ {
"name": "Context",
"desc": "Objects and hashes should be pushed onto the context stack.",
"data": {