diff options
author | Samy Pesse <samypesse@gmail.com> | 2016-06-06 19:24:12 +0200 |
---|---|---|
committer | Samy Pesse <samypesse@gmail.com> | 2016-06-06 19:24:12 +0200 |
commit | 357e1e8e96174e1b0d74c3c952c1d83f7c04982f (patch) | |
tree | 977ac85460d8fc281cb4f02eb9261903b5cf3723 /lib/templating/render.js | |
parent | 7a89f9869a08b9427df0c28f6594a7ec9da7c0d7 (diff) | |
download | gitbook-357e1e8e96174e1b0d74c3c952c1d83f7c04982f.zip gitbook-357e1e8e96174e1b0d74c3c952c1d83f7c04982f.tar.gz gitbook-357e1e8e96174e1b0d74c3c952c1d83f7c04982f.tar.bz2 |
Add unit tests for postRender
Diffstat (limited to 'lib/templating/render.js')
-rw-r--r-- | lib/templating/render.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/templating/render.js b/lib/templating/render.js index 68396f7..1a8b0cd 100644 --- a/lib/templating/render.js +++ b/lib/templating/render.js @@ -4,14 +4,14 @@ var TemplateOutput = require('../models/templateOutput'); var replaceShortcuts = require('./replaceShortcuts'); /** - Render a template - - @param {TemplateEngine} engine - @param {String} filePath: absolute path for the loader - @param {String} content - @param {Object} context - @return {Promise<TemplateOutput>} -*/ + * Render a template + * + * @param {TemplateEngine} engine + * @param {String} filePath: absolute path for the loader + * @param {String} content + * @param {Object} context (optional) + * @return {Promise<TemplateOutput>} + */ function renderTemplate(engine, filePath, content, context) { context = context || {}; |