diff options
Diffstat (limited to 'lib/backbone/summary.js')
-rw-r--r-- | lib/backbone/summary.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/backbone/summary.js b/lib/backbone/summary.js index f4b9288..cef3ae9 100644 --- a/lib/backbone/summary.js +++ b/lib/backbone/summary.js @@ -41,6 +41,14 @@ TOCArticle.prototype.walk = function(iter) { }); }; +// Return templating context for an article +TOCArticle.prototype.getContext = function() { + return { + title: this.title, + path: this.path + }; +}; + // Return true if is pointing to a file TOCArticle.prototype.hasLocation = function() { return Boolean(this.path); |