diff options
Diffstat (limited to 'lib/page/index.js')
-rw-r--r-- | lib/page/index.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/page/index.js b/lib/page/index.js index b3ff00f..342830a 100644 --- a/lib/page/index.js +++ b/lib/page/index.js @@ -139,7 +139,7 @@ Page.prototype.toHTML = function(output) { // Render template .then(function() { - return output.template.renderString(that.content, that.getContext(), { + return output.template.render(that.content, that.getContext(), { file: that.path }) .then(that.update); @@ -154,6 +154,12 @@ Page.prototype.toHTML = function(output) { }); }) + // Post process templating + .then(function() { + return output.template.postProcess(that.content) + .then(that.update); + }) + // Normalize HTML output .then(function() { var pipelineOpts = { |