1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-17 07:47:24 +00:00

Improved the tiddler macro

Now you can transclude tiddlers as templates
This commit is contained in:
Jeremy Ruston
2012-01-27 18:43:39 +00:00
parent 6a81ed786e
commit 205987d280
13 changed files with 35 additions and 16 deletions

View File

@@ -349,7 +349,7 @@ WikiStore.prototype.renderTiddler = function(targetType,title,asTitle,options) {
return {};
});
if(tiddler) {
if(asTitle) {
if(asTitle && asTitle !== title) {
var asTiddler = this.getTiddler(asTitle);
return stitcher("div",{
"data-tw-render-tiddler": title,