diff options
Diffstat (limited to 'lib/output/website/index.js')
-rw-r--r-- | lib/output/website/index.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/output/website/index.js b/lib/output/website/index.js index 0a8618c..9acc631 100644 --- a/lib/output/website/index.js +++ b/lib/output/website/index.js @@ -154,7 +154,9 @@ WebsiteOutput.prototype.renderAsString = function(tpl, context) { // Calcul template name var filename = this.templateName(tpl); - context = _.extend(context, { + context = _.extend({ + template: {} + }, context, { plugins: { resources: this.resources }, @@ -165,7 +167,7 @@ WebsiteOutput.prototype.renderAsString = function(tpl, context) { // Create environment var env = setupTemplateEnv(this, context); - return Promise.nfcall(env.render.bind(env), filename, context); + return Promise.nfcall(env.render.bind(env), filename); }; /* |