consolidate-velocity
Advanced tools
Comparing version
@@ -1072,3 +1072,3 @@ 'use strict'; | ||
fn(null, engine.render(str, options, { | ||
parse: function(file) { | ||
include: function(file) { | ||
var filePath = options.filename; | ||
@@ -1079,2 +1079,8 @@ var includePath = filePath.slice(0, filePath.lastIndexOf('/') + 1); | ||
return this.eval(includeFile, options) | ||
}, | ||
parse: function() { | ||
var filePath = options.filename.replace(options.realpath, options.__path__); | ||
var includeFile = fs.readFileSync(filePath).toString('utf-8'); | ||
return this.eval(includeFile, options) | ||
} | ||
@@ -1081,0 +1087,0 @@ }).trimLeft()); |
{ | ||
"name": "consolidate-velocity", | ||
"version": "0.14.1", | ||
"version": "0.14.2", | ||
"description": "Template engine consolidation library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
41352
0.64%1072
0.47%