mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
Fixes #411. Partially adding _.templateSettings could break template strings containing the words 'null' or 'undefined'.
This commit is contained in:
@@ -144,6 +144,9 @@ $(document).ready(function() {
|
||||
|
||||
var mustache = _.template("Hello {{planet}}!");
|
||||
equals(mustache({planet : "World"}), "Hello World!", "can mimic mustache.js");
|
||||
|
||||
var templateWithNull = _.template("a null undefined {{planet}}");
|
||||
equals(templateWithNull({planet : "world"}), "a null undefined world", "can handle missing escape and evaluate settings");
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user