lodash: Cleanup template. [jddalton]

Former-commit-id: 286af73ea3a4d798afd4baa01e586ada0305e66b
This commit is contained in:
John-David Dalton
2012-05-03 10:01:53 -04:00
parent 312f0310dc
commit 2f908870e7
5 changed files with 252 additions and 193 deletions

View File

@@ -210,6 +210,19 @@
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.template');
(function() {
test('supports recursive calls', function() {
var compiled = _.template('<%= a %><% a = _.template(c, object) %><%= a %>'),
data = { 'a': 'A', 'b': 'B', 'c': '<%= b %>' };
equal(compiled(data), 'AB');
});
}());
/*--------------------------------------------------------------------------*/
QUnit.module('lodash.throttle');
(function() {