mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-25 06:14:58 +00:00
Refactor the Tiddler object to enforce immutability
And in the process move the fields out of the fields member
This commit is contained in:
@@ -135,7 +135,7 @@ var commandLineSwitches = {
|
||||
handler: function(args,callback) {
|
||||
var recipe = [];
|
||||
app.store.forEachTiddler(function(title,tiddler) {
|
||||
var filename = encodeURIComponent(tiddler.fields.title.replace(/ /g,"_")) + ".tid";
|
||||
var filename = encodeURIComponent(tiddler.title.replace(/ /g,"_")) + ".tid";
|
||||
fs.writeFileSync(path.resolve(args[0],filename),tiddlerOutput.outputTiddler(tiddler),"utf8");
|
||||
recipe.push("tiddler: " + filename + "\n");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user