ee-templates
Advanced tools
Comparing version 0.3.6 to 0.3.7
@@ -34,3 +34,5 @@ "use strict"; | ||
ctx['language'] = data.language; | ||
ctx.language = data.language; | ||
ctx.hostname = data.host; | ||
try { | ||
@@ -37,0 +39,0 @@ env.render(data.template, ctx, function(err, content){ |
@@ -38,3 +38,8 @@ var log = require('ee-log'), | ||
if(path == this.nullPath){ | ||
var context = {content: '', template: template, language:language, host: request.hostname}; | ||
var context = { | ||
content : '' | ||
, template : template | ||
, language : language | ||
, host : request.hostname | ||
}; | ||
@@ -41,0 +46,0 @@ renderer.render(context, function(err, content, type){ |
{ | ||
"name" : "ee-templates" | ||
, "description" : "Templating integration for the ee-soa-transport-rest based on Nunjucks" | ||
, "version" : "0.3.6" | ||
, "version" : "0.3.7" | ||
, "license" : "MIT" | ||
@@ -6,0 +6,0 @@ , "author" : "Michael Rüfenacht <ruefe@rcky.ch> (http://www.rcky.ch)" |
39649
813