Added a wrapper around transcluded tiddlers

For styling
print-window-tiddler
Jeremy Ruston 2012-03-29 14:57:54 +01:00
rodzic 0c2ba36945
commit 048cc1f6de
1 zmienionych plików z 10 dodań i 1 usunięć

Wyświetl plik

@ -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)];
}
};