summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/template/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/template/index.js b/lib/template/index.js
index 087ac59..c9ca66f 100644
--- a/lib/template/index.js
+++ b/lib/template/index.js
@@ -25,7 +25,7 @@ function normBlockResult(blk) {
// Extract kwargs from an arguments array
function extractKwargs(args) {
- var last = _.last(args)
+ var last = _.last(args);
return (_.isObject(last) && last.__keywords)? args.pop() : {};
}
@@ -74,6 +74,7 @@ function TemplateEngine(output) {
// Build context for this book with depreacted fields
this.ctx = {
+ template: this,
book: this.book,
output: this.output
};