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 : []; 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": {