summaryrefslogtreecommitdiffstats
path: root/lib/template/index.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2016-03-18 11:10:58 +0100
committerSamy Pessé <samypesse@gmail.com>2016-03-18 11:10:58 +0100
commit82d8c3e2d954f06fb97644ae0934dbd4c3df8cb3 (patch)
treee63cf2c4d5ff7cfb8f820213e10173e88330eea9 /lib/template/index.js
parentbc0c8dbcf3ef060d99cafb27b9a414a3009c4a5f (diff)
downloadgitbook-82d8c3e2d954f06fb97644ae0934dbd4c3df8cb3.zip
gitbook-82d8c3e2d954f06fb97644ae0934dbd4c3df8cb3.tar.gz
gitbook-82d8c3e2d954f06fb97644ae0934dbd4c3df8cb3.tar.bz2
Add method renderInline and renderBlock to book
Diffstat (limited to 'lib/template/index.js')
-rw-r--r--lib/template/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/template/index.js b/lib/template/index.js
index 078dd6c..5af2089 100644
--- a/lib/template/index.js
+++ b/lib/template/index.js
@@ -80,7 +80,7 @@ TemplateEngine.prototype.bindContext = function(func) {
// Interpolate a string content to replace shortcuts according to the filetype
TemplateEngine.prototype.interpolate = function(filepath, source) {
- var parser = parsers.get(path.extname(filepath));
+ var parser = parsers.getByExt(path.extname(filepath));
var type = parser? parser.name : null;
return this.applyShortcuts(type, source);