summaryrefslogtreecommitdiffstats
path: root/lib/template/blocks.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-01-31 17:01:50 +0100
committerSamy Pessé <samypesse@gmail.com>2016-01-31 17:01:50 +0100
commita24aa79dbf5be625ec3fdac50aca955c0b478fec (patch)
treec2f9c15ae7c703d8bb1e100198108369bafb7174 /lib/template/blocks.js
parent633de85180b1c968edc3e884821c3de668d23506 (diff)
downloadgitbook-a24aa79dbf5be625ec3fdac50aca955c0b478fec.zip
gitbook-a24aa79dbf5be625ec3fdac50aca955c0b478fec.tar.gz
gitbook-a24aa79dbf5be625ec3fdac50aca955c0b478fec.tar.bz2
Add base for templating
Diffstat (limited to 'lib/template/blocks.js')
-rw-r--r--lib/template/blocks.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/template/blocks.js b/lib/template/blocks.js
new file mode 100644
index 0000000..92097a7
--- /dev/null
+++ b/lib/template/blocks.js
@@ -0,0 +1,11 @@
+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
+};