summaryrefslogtreecommitdiffstats
path: root/lib/template.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2015-01-19 14:51:35 +0100
committerSamy Pessé <samypesse@gmail.com>2015-01-19 14:51:35 +0100
commitb314972195b18df43ad3eba6266ae1ba1b1873e3 (patch)
tree0765b59d5d270f89e93e78dc653f93630fb572e4 /lib/template.js
parent52179163dda6f52e0d64dc516c5612ac1e17be8f (diff)
downloadgitbook-b314972195b18df43ad3eba6266ae1ba1b1873e3.zip
gitbook-b314972195b18df43ad3eba6266ae1ba1b1873e3.tar.gz
gitbook-b314972195b18df43ad3eba6266ae1ba1b1873e3.tar.bz2
Add configuration to send structures files
Diffstat (limited to 'lib/template.js')
-rw-r--r--lib/template.js18
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;