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
This commit is contained in:
kpdecker
2014-11-02 11:55:52 -06:00
parent 9fbf7aa753
commit f30b3ea329
7 changed files with 29 additions and 12 deletions
+3
View File
@@ -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() {