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/models/templateOutput.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/models/templateOutput.js')
-rw-r--r-- | lib/models/templateOutput.js | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/lib/models/templateOutput.js b/lib/models/templateOutput.js index cd65a05..ae63c06 100644 --- a/lib/models/templateOutput.js +++ b/lib/models/templateOutput.js @@ -17,23 +17,21 @@ TemplateOutput.prototype.getBlocks = function() { }; /** - Update content of this output - - @param {String} content - @return {TemplateContent} -*/ + * Update content of this output + * @param {String} content + * @return {TemplateContent} + */ TemplateOutput.prototype.setContent = function(content) { return this.set('content', content); }; /** - Create a TemplateOutput from a text content - and an object containing block definition - - @param {String} content - @param {Object} blocks - @return {TemplateOutput} -*/ + * Create a TemplateOutput from a text content + * and an object containing block definition + * @param {String} content + * @param {Object} blocks + * @return {TemplateOutput} + */ TemplateOutput.create = function(content, blocks) { return new TemplateOutput({ content: content, |