mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-08 23:20:03 +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++) {
|
for(t=0; t<contentClone.length; t++) {
|
||||||
contentClone[t].execute(parents,renderTitle);
|
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 the content
|
||||||
return contentClone;
|
return [Renderer.ElementNode("div",attributes,contentClone)];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user