From e2459ad8c16ef2ae8751db51400948d420a74afa Mon Sep 17 00:00:00 2001 From: David Susco Date: Thu, 11 Jun 2015 12:03:31 -0400 Subject: [PATCH] added includes option to process --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 6ec8791..402f816 100644 --- a/index.js +++ b/index.js @@ -31,7 +31,7 @@ var fs = require("fs"), doT = module.exports = require("./doT"); doT.process = function(options) { - //path, destination, global, rendermodule, templateSettings + //path, destination, global, rendermodule, templateSettings, includes return new InstallDots(options).compileAll(); }; @@ -43,7 +43,7 @@ function InstallDots(o) { this.__global = o.global || "window.render"; this.__rendermodule = o.rendermodule || {}; this.__settings = o.templateSettings ? copy(o.templateSettings, copy(doT.templateSettings)) : undefined; - this.__includes = {}; + this.__includes = o.includes || {}; } InstallDots.prototype.compileToFile = function(path, template, def) {