diff options
Diffstat (limited to 'lib/templating')
-rw-r--r-- | lib/templating/blocks.js | 11 | ||||
-rw-r--r-- | lib/templating/index.js | 27 | ||||
-rw-r--r-- | lib/templating/loader.js | 0 |
3 files changed, 0 insertions, 38 deletions
diff --git a/lib/templating/blocks.js b/lib/templating/blocks.js deleted file mode 100644 index 92097a7..0000000 --- a/lib/templating/blocks.js +++ /dev/null @@ -1,11 +0,0 @@ -var _ = require('lodash'); - -module.exports = { - // Return non-parsed html - // since blocks are by default non-parsable, a simple identity method works fine - html: _.identity, - - // Highlight a code block - // This block can be extent by plugins - code: _.identity -}; 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; diff --git a/lib/templating/loader.js b/lib/templating/loader.js deleted file mode 100644 index e69de29..0000000 --- a/lib/templating/loader.js +++ /dev/null |