From 1d6eba30716aed4ce9979f8aaba2a4e3b3e9bd46 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Thu, 23 Aug 2012 12:31:16 +0100 Subject: [PATCH] Add "transclude" format for the view macro Uses the value of the field as the title of a tiddler to transclude --- core/modules/macros/view.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/core/modules/macros/view.js b/core/modules/macros/view.js index 7f6dd4064..29acae3ee 100644 --- a/core/modules/macros/view.js +++ b/core/modules/macros/view.js @@ -64,6 +64,18 @@ exports.executeMacro = function() { return link; } break; + case "transclude": + if(tiddler && this.params.field && (this.params.field in tiddler.fields)) { + children = this.wiki.parseTiddler(tiddler.fields[this.params.field]).tree; + for(t=0; t