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

underscore-template-loader

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

underscore-template-loader - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

4

index.js

@@ -41,7 +41,7 @@ var _ = require('underscore');

var callback = this.async();
content = resolveContent(content, "./");
content = resolveContent(content, this.context);
var fn = _.template(content);
callback(null, "module.exports = " + fn + ";");
callback(null, "module.exports = " + fn.source + ";");
};
module.exports._ = _;
{
"name": "underscore-template-loader",
"version": "0.2.0",
"version": "0.2.1",
"description": "A Underscore template loader for Webpack",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -31,2 +31,3 @@ underscore-template-loader

```html
<!-- file: hello.html -->
<p>Hello&nbsp;<%=name%></p>

@@ -41,4 +42,19 @@ ```

<br/>
**Include tag**
```html
<!-- file: main.html -->
<p>Hello, <!--include message.html--></p>
```
```html
<!-- file: message.html -->
<em>how are you?</em>
```
<br/>
###License
Released under the MIT license.
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