diff --git a/core/modules/commands/savetiddler.js b/core/modules/commands/savetiddler.js index d58b71b4a..1167868c7 100644 --- a/core/modules/commands/savetiddler.js +++ b/core/modules/commands/savetiddler.js @@ -32,8 +32,14 @@ Command.prototype.execute = function() { path = require("path"), title = this.params[0], filename = this.params[1], - type = this.params[2] || "text/html"; - fs.writeFile(filename,this.commander.wiki.renderTiddler(type,title),"utf8",function(err) { + type = this.params[2] || "text/html", + options = {}, + t; + for(var t=3; t [] +--savetiddler <filename> [<type>] [<withparam> <withparam>...] }}} + +The optional `<withparams>` are substituted for `$1`, `$2` etc before parsing.