diff --git a/lib/client/template_engine.js b/lib/client/template_engine.js index 0e10d99b..bd1a6de2 100644 --- a/lib/client/template_engine.js +++ b/lib/client/template_engine.js @@ -92,7 +92,7 @@ module.exports = function(ss,options) { if (typeof mod === 'function') { engine = mod(ss, config, options); } else { - engine = mod.init(ss.root, config, options); + engine = mod.init(ss, config, options); } return mods.push({ engine: engine, diff --git a/test/unit/client/template_engine.test.js b/test/unit/client/template_engine.test.js index 54f60da4..df5ba00a 100644 --- a/test/unit/client/template_engine.test.js +++ b/test/unit/client/template_engine.test.js @@ -53,8 +53,8 @@ describe('Template engine', function() { describe('custom use', function() { var oldEngine = { - init: function(root, config) { - root.should.equal(ss.root); + init: function(api, config) { + api.should.equal(ss.api); return { name: 'Old', selectFormatter: function() {