diff --git a/lib/engine_underscore.js b/lib/engine_underscore.js index d619649..d84e30d 100644 --- a/lib/engine_underscore.js +++ b/lib/engine_underscore.js @@ -40,7 +40,6 @@ _.mixin({ dataIn instanceof Object && currentContext instanceof Object) { data = addParentContext(data, currentContext); } - compiled = _.template(partial); return compiled(data); @@ -106,8 +105,8 @@ var engine_underscore = { return renderedHTML; }, - registerPartial: function (oPattern) { - partialRegistry[oPattern.key] = oPattern.template; + registerPartial: function (pattern) { + partialRegistry[pattern.patternPartial] = pattern.template; }, // find and return any {{> template-name }} within pattern diff --git a/package.json b/package.json index 689ca2a..cf32bfa 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "patternengine-node-underscore", "description": "The Underscore engine for Pattern Lab / Node", - "version": "1.1.0", + "version": "1.1.1", "main": "lib/engine_underscore.js", "dependencies": { "underscore": "^1.8.3"