summaryrefslogtreecommitdiffstats
path: root/spec/basic.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2014-11-02 11:55:52 -0600
committerkpdecker <kpdecker@gmail.com>2014-11-02 11:55:52 -0600
commitf30b3ea3293ad28bad8167e40b8372c48cb2419e (patch)
treef668b1950bc532b35cbbab3e78ea0e50f9e9577e /spec/basic.js
parent9fbf7aa753f5d48951c3f373c40f787739489962 (diff)
downloadhandlebars.js-f30b3ea3293ad28bad8167e40b8372c48cb2419e.zip
handlebars.js-f30b3ea3293ad28bad8167e40b8372c48cb2419e.tar.gz
handlebars.js-f30b3ea3293ad28bad8167e40b8372c48cb2419e.tar.bz2
Allow whitespace control on comments
This changes the call signature for the CommentNode constructor, which is a potentially breaking change for AST users. Fixes #866
Diffstat (limited to 'spec/basic.js')
-rw-r--r--spec/basic.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/basic.js b/spec/basic.js
index 8a9c116..139d6d0 100644
--- a/spec/basic.js
+++ b/spec/basic.js
@@ -33,6 +33,9 @@ describe("basic context", function() {
shouldCompileTo("{{! Goodbye}}Goodbye\n{{cruel}}\n{{world}}!",
{cruel: "cruel", world: "world"}, "Goodbye\ncruel\nworld!",
"comments are ignored");
+
+ shouldCompileTo(' {{~! comment ~}} blah', {}, 'blah');
+ shouldCompileTo(' {{~!-- long-comment --~}} blah', {}, 'blah');
});
it("boolean", function() {