mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-02 12:19:11 +00:00
Added a wrapper around transcluded tiddlers
For styling
This commit is contained in:
parent
0c2ba36945
commit
048cc1f6de
@ -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)];
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user