diff options
author | Samy Pessé <samypesse@gmail.com> | 2016-03-18 11:10:58 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2016-03-18 11:10:58 +0100 |
commit | 82d8c3e2d954f06fb97644ae0934dbd4c3df8cb3 (patch) | |
tree | e63cf2c4d5ff7cfb8f820213e10173e88330eea9 /lib/template/index.js | |
parent | bc0c8dbcf3ef060d99cafb27b9a414a3009c4a5f (diff) | |
download | gitbook-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.js | 2 |
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); |