mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2025-12-28 12:52:47 -08:00
Fix filesystem adaptor to use new widget mechanism
This commit is contained in:
parent
55a70b3fac
commit
d2b2ae5262
1 changed files with 2 additions and 2 deletions
|
|
@ -152,7 +152,7 @@ FileSystemAdaptor.prototype.saveTiddler = function(tiddler,callback) {
|
|||
if(err) {
|
||||
return callback(err);
|
||||
}
|
||||
content = $tw.wiki.renderTiddler("text/plain","$:/core/templates/tiddler-metadata",{tiddlerTitle: tiddler.fields.title});
|
||||
content = $tw.wiki.new_renderTiddler("text/plain","$:/core/templates/tiddler-metadata",{variables: {currentTiddler: tiddler.fields.title}});
|
||||
fs.writeFile(fileInfo.filepath + ".meta",content,{encoding: "utf8"},function (err) {
|
||||
if(err) {
|
||||
return callback(err);
|
||||
|
|
@ -164,7 +164,7 @@ console.log("FileSystem: Saved file",fileInfo.filepath);
|
|||
} else {
|
||||
// Save the tiddler as a self contained templated file
|
||||
template = $tw.config.typeTemplates[fileInfo.type];
|
||||
content = $tw.wiki.renderTiddler("text/plain",template,{tiddlerTitle: tiddler.fields.title});
|
||||
content = $tw.wiki.new_renderTiddler("text/plain",template,{variables: {currentTiddler: tiddler.fields.title}});
|
||||
fs.writeFile(fileInfo.filepath,content,{encoding: "utf8"},function (err) {
|
||||
if(err) {
|
||||
return callback(err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue