hogan-middleware
Advanced tools
Comparing version 0.2.1 to 0.2.2
{ | ||
"name": "hogan-middleware", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"description": "Middleware component to use Hogan.js mustache templates as views in an Express server", | ||
@@ -5,0 +5,0 @@ "author": "Steve King <steve@mydev.co>", |
@@ -48,3 +48,3 @@ | ||
TemplateEngine.__express = function(templatePath, templateData, next) { | ||
var templateName = Path.basename(templatePath, Path.extname(templatePath)); | ||
var templateName = stripFileExtension(Path.relative(templateData.settings.views, templatePath)); | ||
var templates = TemplateEngine._getTemplates(templateData.settings.views); | ||
@@ -51,0 +51,0 @@ var output = null, error = null; |
8547