1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-09 05:24:21 +00:00

Added a wrapper around transcluded tiddlers

For styling
This commit is contained in:
Jeremy Ruston 2012-03-29 14:57:54 +01:00
parent 0c2ba36945
commit 048cc1f6de

View File

@ -97,8 +97,17 @@ exports.macro = {
for(t=0; t<contentClone.length; t++) {
contentClone[t].execute(parents,renderTitle);
}
// Set up the attributes for the wrapper element
var attributes = {
"data-tiddler-target": renderTitle,
"data-tiddler-template": renderTemplate,
"class": ["tiddlerFrame"]
};
if(!this.store.tiddlerExists(renderTitle)) {
attributes["class"].push("tiddlerMissing");
}
// Return the content
return contentClone;
return [Renderer.ElementNode("div",attributes,contentClone)];
}
};