Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lodash.template

Package Overview
Dependencies
Maintainers
4
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.template - npm Package Compare versions

Comparing version 2.2.1 to 2.3.0

26

index.js
/**
* Lo-Dash 2.2.1 (Custom Build) <http://lodash.com/>
* Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/>
* Build: `lodash modularize modern exports="npm" -o ./npm/`

@@ -42,3 +42,3 @@ * Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>

* For more information on precompiling templates see:
* http://lodash.com/#custom-builds
* http://lodash.com/custom-builds
*

@@ -66,4 +66,4 @@ * For more information on Chrome extension sandboxes see:

* var compiled = _.template('hello <%= name %>');
* compiled({ 'name': 'moe' });
* // => 'hello moe'
* compiled({ 'name': 'fred' });
* // => 'hello fred'
*

@@ -76,12 +76,12 @@ * // using the "escape" delimiter to escape HTML in data property values

* var list = '<% _.forEach(people, function(name) { %><li><%- name %></li><% }); %>';
* _.template(list, { 'people': ['moe', 'larry'] });
* // => '<li>moe</li><li>larry</li>'
* _.template(list, { 'people': ['fred', 'barney'] });
* // => '<li>fred</li><li>barney</li>'
*
* // using the ES6 delimiter as an alternative to the default "interpolate" delimiter
* _.template('hello ${ name }', { 'name': 'curly' });
* // => 'hello curly'
* _.template('hello ${ name }', { 'name': 'pebbles' });
* // => 'hello pebbles'
*
* // using the internal `print` function in "evaluate" delimiters
* _.template('<% print("hello " + name); %>!', { 'name': 'larry' });
* // => 'hello larry!'
* _.template('<% print("hello " + name); %>!', { 'name': 'barney' });
* // => 'hello barney!'
*

@@ -98,4 +98,4 @@ * // using a custom template delimiters

* var list = '<% $.each(people, function(name) { %><li><%- name %></li><% }); %>';
* _.template(list, { 'people': ['moe', 'larry'] }, { 'imports': { '$': jQuery } });
* // => '<li>moe</li><li>larry</li>'
* _.template(list, { 'people': ['fred', 'barney'] }, { 'imports': { '$': jQuery } });
* // => '<li>fred</li><li>barney</li>'
*

@@ -130,3 +130,3 @@ * // using the `sourceURL` option to specify a custom sourceURL for the template

var settings = templateSettings.imports._.templateSettings || templateSettings;
text || (text = '');
text = String(text || '');

@@ -133,0 +133,0 @@ // avoid missing dependencies when `iteratorTemplate` is not defined

{
"name": "lodash.template",
"version": "2.2.1",
"version": "2.3.0",
"description": "The Lo-Dash function `_.template` as a Node.js module generated by lodash-cli.",

@@ -11,3 +11,3 @@ "homepage": "http://lodash.com/custom-builds",

"John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",
"Blaine Bublitz <blaine@iceddev.com> (http://iceddev.com/)",
"Blaine Bublitz <blaine@iceddev.com> (http://www.iceddev.com/)",
"Kit Cambridge <github@kitcambridge.be> (http://kitcambridge.be/)",

@@ -19,10 +19,10 @@ "Mathias Bynens <mathias@qiwi.be> (http://mathiasbynens.be/)"

"dependencies": {
"lodash.defaults": "~2.2.1",
"lodash.escape": "~2.2.1",
"lodash._escapestringchar": "~2.2.1",
"lodash.keys": "~2.2.1",
"lodash._reinterpolate": "~2.2.1",
"lodash.templatesettings": "~2.2.1",
"lodash.values": "~2.2.1"
"lodash.defaults": "~2.3.0",
"lodash.escape": "~2.3.0",
"lodash._escapestringchar": "~2.3.0",
"lodash.keys": "~2.3.0",
"lodash._reinterpolate": "~2.3.0",
"lodash.templatesettings": "~2.3.0",
"lodash.values": "~2.3.0"
}
}
}

@@ -1,2 +0,2 @@

# lodash.template v2.2.1
# lodash.template v2.3.0

@@ -7,3 +7,3 @@ The [Lo-Dash](http://lodash.com/) function [`_.template`](http://lodash.com/docs#template) as a [Node.js](http://nodejs.org/) module generated by [lodash-cli](https://npmjs.org/package/lodash-cli).

| [![twitter/jdalton](http://gravatar.com/avatar/299a3d891ff1920b69c364d061007043?s=70)](http://twitter.com/jdalton "Follow @jdalton on Twitter") |
| [![twitter/jdalton](http://gravatar.com/avatar/299a3d891ff1920b69c364d061007043?s=70)](https://twitter.com/jdalton "Follow @jdalton on Twitter") |
|---|

@@ -14,4 +14,4 @@ | [John-David Dalton](http://allyoucanleet.com/) |

| [![twitter/blainebublitz](http://gravatar.com/avatar/ac1c67fd906c9fecd823ce302283b4c1?s=70)](http://twitter.com/blainebublitz "Follow @BlaineBublitz on Twitter") | [![twitter/kitcambridge](http://gravatar.com/avatar/6662a1d02f351b5ef2f8b4d815804661?s=70)](https://twitter.com/kitcambridge "Follow @kitcambridge on Twitter") | [![twitter/mathias](http://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](http://twitter.com/mathias "Follow @mathias on Twitter") |
| [![twitter/blainebublitz](http://gravatar.com/avatar/ac1c67fd906c9fecd823ce302283b4c1?s=70)](https://twitter.com/blainebublitz "Follow @BlaineBublitz on Twitter") | [![twitter/kitcambridge](http://gravatar.com/avatar/6662a1d02f351b5ef2f8b4d815804661?s=70)](https://twitter.com/kitcambridge "Follow @kitcambridge on Twitter") | [![twitter/mathias](http://gravatar.com/avatar/24e08a9ea84deb17ae121074d0f17125?s=70)](https://twitter.com/mathias "Follow @mathias on Twitter") |
|---|---|---|
| [Blaine Bublitz](http://iceddev.com/) | [Kit Cambridge](http://kitcambridge.github.io/) | [Mathias Bynens](http://mathiasbynens.be/) |
| [Blaine Bublitz](http://www.iceddev.com/) | [Kit Cambridge](http://kitcambridge.be/) | [Mathias Bynens](http://mathiasbynens.be/) |
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc