Ensure template delimiters are tokenized correctly. [closes #64]

Former-commit-id: 814f3f8a840a70a9b455e5f91da0e21174f08787
This commit is contained in:
John-David Dalton
2012-08-31 13:50:10 -07:00
parent 83356142c1
commit 2b0bffc362
2 changed files with 11 additions and 5 deletions

View File

@@ -1487,6 +1487,11 @@
}
ok(pass);
});
test('should tokenize delimiters correctly', function() {
var compiled = _.template('<span class="icon-<%= type %>2"></span>');
equal(compiled({ 'type': 1 }), '<span class="icon-12"></span>');
});
}());
/*--------------------------------------------------------------------------*/