summaryrefslogtreecommitdiff
path: root/specs/comments.yml
diff options
context:
space:
mode:
Diffstat (limited to 'specs/comments.yml')
-rw-r--r--specs/comments.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/specs/comments.yml b/specs/comments.yml
index 7b14c7f..3bad09f 100644
--- a/specs/comments.yml
+++ b/specs/comments.yml
@@ -101,3 +101,9 @@ tests:
data: { }
template: '12345 {{! Comment Block! }} 67890'
expected: '12345 67890'
+
+ - name: Variable Name Collision
+ desc: Comments must never render, even if variable with same name exists.
+ data: { '! comment': 1, '! comment ': 2, '!comment': 3, 'comment': 4}
+ template: 'comments never show: >{{! comment }}<'
+ expected: 'comments never show: ><'