diff options
Diffstat (limited to 'lib/template.js')
-rw-r--r-- | lib/template.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/template.js b/lib/template.js new file mode 100644 index 0000000..9576fe9 --- /dev/null +++ b/lib/template.js @@ -0,0 +1,18 @@ +var _ = require("lodash"); +var nunjucks = require("nunjucks"); + +var TemplateEngine = function(book) { + this.book = book; +}; + +// Render a file from the book +TemplateEngine.prototype.renderFile = function(filename) { + var that = this; + + return this.book.readFile(filename) + .then(function(content) { + + }); +}; + +module.exports = TemplateEngine; |