From 162ceaefd4d7e1e73bbad0b216c9cfa068c5f3fa Mon Sep 17 00:00:00 2001 From: Pascal Date: Fri, 23 Oct 2015 17:16:02 -0400 Subject: [PATCH 1/2] added support for _.templateSettings.variable Fixes emaphp/underscore-template-loader#8 --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index 59ea152..7080b31 100644 --- a/index.js +++ b/index.js @@ -32,6 +32,11 @@ module.exports = function(content) { _.templateSettings[key] = new RegExp(value, 'g'); }); + // Apply template variable + if (query.variable !== undefined) { + _.templateSettings.variable = query.variable; + } + // Set tag+attribute to parse for external resources if (query.attributes !== undefined) { attributes = _.isArray(query.attributes) ? query.attributes : []; From 7bfd8ed3124f027c443e7bc7ff620935907cb026 Mon Sep 17 00:00:00 2001 From: emaphp Date: Fri, 23 Oct 2015 18:51:33 -0300 Subject: [PATCH 2/2] update package.json -> update collaborators, bump version --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 5ee2bdd..73d8cb6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "underscore-template-loader", - "version": "0.5.1", + "version": "0.5.2", "description": "An Underscore and Lodash template loader for Webpack", "main": "index.js", "homepage": "https://github.com/emaphp/underscore-template-loader", @@ -18,6 +18,9 @@ }, { "name": "Kees Kluskens (SpaceK33z)" + }, + { + "name": "Pascal (pascalpp)" } ], "repository": {