diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-01-31 17:01:50 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-01-31 17:01:50 +0100 |
commit | a24aa79dbf5be625ec3fdac50aca955c0b478fec (patch) | |
tree | c2f9c15ae7c703d8bb1e100198108369bafb7174 /lib/templating/index.js | |
parent | 633de85180b1c968edc3e884821c3de668d23506 (diff) | |
download | gitbook-a24aa79dbf5be625ec3fdac50aca955c0b478fec.zip gitbook-a24aa79dbf5be625ec3fdac50aca955c0b478fec.tar.gz gitbook-a24aa79dbf5be625ec3fdac50aca955c0b478fec.tar.bz2 |
Add base for templating
Diffstat (limited to 'lib/templating/index.js')
-rw-r--r-- | lib/templating/index.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/templating/index.js b/lib/templating/index.js deleted file mode 100644 index 3a0fc16..0000000 --- a/lib/templating/index.js +++ /dev/null @@ -1,27 +0,0 @@ -var nunjucks = require('nunjucks'); - -function TemplatingEngine(book) { - this.book = book; - this.log = book.log; - - this.nunjucks = new nunjucks.Environment( - this.loader, - { - // Escaping is done after by the asciidoc/markdown parser - autoescape: false, - - // Syntax - tags: { - blockStart: '{%', - blockEnd: '%}', - variableStart: '{{', - variableEnd: '}}', - commentStart: '{###', - commentEnd: '###}' - } - } - ); -} - - -module.exports = TemplatingEngine; |