Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

Commit

Permalink
Merge pull request #43 from uber/fix-gen
Browse files Browse the repository at this point in the history
Fixing template generation, was not using underscore template correctly
  • Loading branch information
robskillington committed Sep 5, 2014
2 parents e16c6fb + 423ea92 commit 2033f56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -218,11 +218,11 @@ Template.prototype.create = function() {

Template.prototype.parse = function(str){
var self = this;
_.templateSettings = {
var settings = {
interpolate: /\{\{(.+?)\}\}/g,
evaluate: /\{\%(.+?)\%\}/g
};
return _.template(str, self.values);
return _.template(str, settings)(self.values);
};

module.exports = Template;
4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "uber-ngen",
"version": "3.11.0",
"version": "3.11.1",
"description": "Package generator (structure, changelogs, tests, package.json, etc)",
"keywords": [],
"author": "TJ Holowaychuk <tj@vision-media.ca>",
Expand All @@ -27,7 +27,7 @@
"msee": "~0.1.1",
"promptly": "~0.2.0",
"string-template": "~0.1.3",
"underscore": "^1.6.0",
"underscore": "^1.7.0",
"xtend": "^2.2.0"
},
"licenses": [
Expand Down

0 comments on commit 2033f56

Please sign in to comment.