diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-01-25 13:54:25 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-01-25 13:54:25 +0100 |
commit | bb5761e88548f607e3b0dc6b8e03c652c93a9511 (patch) | |
tree | 40e8e063b7eeeae46ee6bb4fa8dc094e8b1180af /lib/template.js | |
parent | d60a9763cde7ff0fa0d776493f2730ea96283459 (diff) | |
download | gitbook-bb5761e88548f607e3b0dc6b8e03c652c93a9511.zip gitbook-bb5761e88548f607e3b0dc6b8e03c652c93a9511.tar.gz gitbook-bb5761e88548f607e3b0dc6b8e03c652c93a9511.tar.bz2 |
Change comment start and end in templates
(to avoid conflicts with maths)
Diffstat (limited to 'lib/template.js')
-rw-r--r-- | lib/template.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/template.js b/lib/template.js index 76bb9ab..b4562b1 100644 --- a/lib/template.js +++ b/lib/template.js @@ -47,7 +47,17 @@ var TemplateEngine = function(book) { new BookLoader(book), { // Escaping is done after by the markdown parser - autoescape: false + autoescape: false, + + // Tags + tags: { + blockStart: '{%', + blockEnd: '%}', + variableStart: '{{', + variableEnd: '}}', + commentStart: '{###', + commentEnd: '###}' + } } ); }; |