Add {{{{ }}}} for raw blocks

This commit is contained in:
Jesse Ezell
2013-07-11 12:28:37 -07:00
committed by kpdecker
parent 7a7ad74ff1
commit 954253305a
3 changed files with 15 additions and 1 deletions
+8
View File
@@ -21,6 +21,14 @@ describe('blocks', function() {
equal(result, "0. goodbye! 1. Goodbye! 2. GOODBYE! cruel world!", "The @index variable is used");
});
it("raw block", function() {
var string = "{{{{ {{test}} }}}}";
var hash = { test: "hello" };
shouldCompileTo(string, hash, " {{test}} ",
"raw block ignores blocks");
});
it("empty block", function() {
var string = "{{#goodbyes}}{{/goodbyes}}cruel {{world}}!";
var hash = {goodbyes: [{text: "goodbye"}, {text: "Goodbye"}, {text: "GOODBYE"}], world: "world"};