Skip to content

Commit

Permalink
Merge branch 'pascalpp-template-variable'
Browse files Browse the repository at this point in the history
  • Loading branch information
emaphp committed Oct 23, 2015
2 parents fcbf57e + 7bfd8ed commit 0889024
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 : [];
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -18,6 +18,9 @@
},
{
"name": "Kees Kluskens (SpaceK33z)"
},
{
"name": "Pascal (pascalpp)"
}
],
"repository": {
Expand Down

0 comments on commit 0889024

Please sign in to comment.