Fixing template settings

This commit is contained in:
Jeremy Ashkenas
2010-10-07 10:44:49 -04:00
parent 0fb9a95182
commit 5b4b308c91
5 changed files with 18 additions and 18 deletions

View File

@@ -108,8 +108,8 @@ $(document).ready(function() {
equals(quoteInStatementAndBody({foo: "bar"}), "Statement quotes and 'quotes'.");
_.templateSettings = {
evaluate : /<%([\s\S]+?)%>/g,
interpolate : /<%=([\s\S]+?)%>/g
evaluate : /<\?([\s\S]+?)\?>/g,
interpolate : /<\?=([\s\S]+?)\?>/g
};
var customWithSpecialChars = _.template("<ul><? for (key in people) { ?><li><?= people[key] ?></li><? } ?></ul>");