summaryrefslogtreecommitdiffstats
path: root/lib/template.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/template.js')
-rw-r--r--lib/template.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/template.js b/lib/template.js
index 9f01d3c..41362c8 100644
--- a/lib/template.js
+++ b/lib/template.js
@@ -330,7 +330,7 @@ TemplateEngine.prototype.applyBlock = function(name, blk) {
// Bind and call block processor
func = this.bindContext(block.process);
- r = func.call(context, blk);
+ r = func(blk);
if (Q.isPromise(r)) return r.then(normBlockResult);
else return normBlockResult(r);
@@ -399,7 +399,7 @@ TemplateEngine.prototype.renderPage = function(page) {
return that.book.statFile(page.path)
.then(function(stat) {
- context = {
+ var context = {
// infos about the file
file: {
path: page.path,