From f9c09917aefc7b98a80a0c8f6a0c15091faa499b Mon Sep 17 00:00:00 2001 From: Dmitriy Kubyshkin Date: Mon, 15 Dec 2014 16:00:49 +0100 Subject: [PATCH] Changed to lodash. --- README.md | 6 +++--- index.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6825cf3..793e963 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Underscore template for webpack +# Lodash template for webpack -Underscore template loader for [webpack](http://webpack.github.io/). Uses underscore template function to compile templates. +Lodash template loader for [webpack](http://webpack.github.io/). Uses `_.template` function to compile templates. ## Installation @@ -11,7 +11,7 @@ Underscore template loader for [webpack](http://webpack.github.io/). Uses unders [Documentation: Using loaders](http://webpack.github.io/docs/using-loaders.html) ``` javascript -var template = require("tpl!./file.ejs"); +var template = require("tpl!./file.html"); // => returns the template function compiled with undesrcore (lodash) templating engine. // And then use it somewhere in your code diff --git a/index.js b/index.js index 201cad7..1718e55 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,4 @@ -var _ = require('underscore'); +var _ = require('lodash'); module.exports = function (source) { this.cacheable && this.cacheable();