Merge pull request #11 from srigi/c39f2c9c3781e56e01e8a8f42ec899125ca1f28e
Replace Underscore.js with Lo-Dash
This commit is contained in:
commit
56edaf6b95
@ -28,7 +28,7 @@
|
||||
"test": "grunt test"
|
||||
},
|
||||
"dependencies": {
|
||||
"underscore": "~1.3.3",
|
||||
"lodash": "~1.0.0",
|
||||
"grunt-lib-contrib": "~0.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
module.exports = function(grunt) {
|
||||
|
||||
var _ = require('underscore');
|
||||
var _ = require('lodash');
|
||||
|
||||
// filename conversion for templates
|
||||
var defaultProcessName = function(name) { return name; };
|
||||
|
@ -3,13 +3,12 @@ define(function(){
|
||||
this["JST"] = this["JST"] || {};
|
||||
|
||||
this["JST"]["test/fixtures/template.html"] = function(obj) {
|
||||
var __p='';var print=function(){__p+=Array.prototype.join.call(arguments, '')};
|
||||
with(obj||{}){
|
||||
obj || (obj = {});
|
||||
var __t, __p = '', __e = _.escape, __d = obj.obj || obj;
|
||||
__p += '<head><title>' +
|
||||
( title )+
|
||||
((__t = ( obj.title )) == null ? '' : __t) +
|
||||
'</title></head>';
|
||||
}
|
||||
return __p;
|
||||
return __p
|
||||
};
|
||||
|
||||
return this["JST"];
|
||||
|
@ -1,11 +1,10 @@
|
||||
this["JST"] = this["JST"] || {};
|
||||
|
||||
this["JST"]["test/fixtures/template.html"] = function(obj) {
|
||||
var __p='';var print=function(){__p+=Array.prototype.join.call(arguments, '')};
|
||||
with(obj||{}){
|
||||
obj || (obj = {});
|
||||
var __t, __p = '', __e = _.escape, __d = obj.obj || obj;
|
||||
__p += '<head><title>' +
|
||||
( title )+
|
||||
((__t = ( obj.title )) == null ? '' : __t) +
|
||||
'</title></head>';
|
||||
}
|
||||
return __p;
|
||||
return __p
|
||||
};
|
@ -3,11 +3,10 @@ this["MyApp"]["JST"] = this["MyApp"]["JST"] || {};
|
||||
this["MyApp"]["JST"]["Main"] = this["MyApp"]["JST"]["Main"] || {};
|
||||
|
||||
this["MyApp"]["JST"]["Main"]["test/fixtures/template.html"] = function(obj) {
|
||||
var __p='';var print=function(){__p+=Array.prototype.join.call(arguments, '')};
|
||||
with(obj||{}){
|
||||
obj || (obj = {});
|
||||
var __t, __p = '', __e = _.escape, __d = obj.obj || obj;
|
||||
__p += '<head><title>' +
|
||||
( title )+
|
||||
((__t = ( obj.title )) == null ? '' : __t) +
|
||||
'</title></head>';
|
||||
}
|
||||
return __p;
|
||||
return __p
|
||||
};
|
@ -1,3 +1,3 @@
|
||||
this["JST"] = this["JST"] || {};
|
||||
|
||||
this["JST"]["test/fixtures/template.html"] = function(obj){var __p='';var print=function(){__p+=Array.prototype.join.call(arguments, '')};with(obj||{}){__p+='<head><title>'+( title )+'</title></head>';}return __p;};
|
||||
this["JST"]["test/fixtures/template.html"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __d = obj.obj || obj;__p += '<head><title>' +((__t = ( obj.title )) == null ? '' : __t) +'</title></head>';return __p};
|
@ -2,7 +2,7 @@ define(function(){
|
||||
|
||||
this["JST"] = this["JST"] || {};
|
||||
|
||||
this["JST"]["test/fixtures/template.html"] = function(obj){var __p='';var print=function(){__p+=Array.prototype.join.call(arguments, '')};with(obj||{}){__p+='<head><title>'+( title )+'</title></head>';}return __p;};
|
||||
this["JST"]["test/fixtures/template.html"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape, __d = obj.obj || obj;__p += '<head><title>' +((__t = ( obj.title )) == null ? '' : __t) +'</title></head>';return __p};
|
||||
|
||||
return this["JST"];
|
||||
});
|
@ -1,11 +1,10 @@
|
||||
this["JST"] = this["JST"] || {};
|
||||
|
||||
this["JST"]["test/fixtures/indent_template.html"] = function(obj) {
|
||||
var __p='';var print=function(){__p+=Array.prototype.join.call(arguments, '')};
|
||||
with(obj||{}){
|
||||
obj || (obj = {});
|
||||
var __t, __p = '', __e = _.escape, __d = obj.obj || obj;
|
||||
__p += '<div>\n<div>\n<div>\n' +
|
||||
( name )+
|
||||
((__t = ( obj.name )) == null ? '' : __t) +
|
||||
'\n</div>\n</div>\n</div>';
|
||||
}
|
||||
return __p;
|
||||
return __p
|
||||
};
|
@ -1,9 +1,8 @@
|
||||
this["JST"] = this["JST"] || {};
|
||||
|
||||
this["JST"]["test/fixtures/it's-a-bad-filename.html"] = function(obj) {
|
||||
var __p='';var print=function(){__p+=Array.prototype.join.call(arguments, '')};
|
||||
with(obj||{}){
|
||||
obj || (obj = {});
|
||||
var __t, __p = '', __e = _.escape, __d = obj.obj || obj;
|
||||
__p += 'never name your file like this.';
|
||||
}
|
||||
return __p;
|
||||
return __p
|
||||
};
|
Loading…
Reference in New Issue
Block a user