diff --git a/core/modules/commands/server.js b/core/modules/commands/server.js index 178564dd0..5bcc3bb9e 100644 --- a/core/modules/commands/server.js +++ b/core/modules/commands/server.js @@ -57,9 +57,7 @@ Command.prototype.execute = function() { case "GET": if(path === "/") { response.writeHead(200, {"Content-Type": serveType}); - var text = self.commander.wiki.renderTiddler(renderType,rootTiddler,{ - "with": ["","[!is[shadow]]"] - }); + var text = self.commander.wiki.renderTiddler(renderType,rootTiddler); response.end(text, "utf8"); } else { response.writeHead(404); diff --git a/core/modules/wiki.js b/core/modules/wiki.js index 083040a57..7b3820d34 100644 --- a/core/modules/wiki.js +++ b/core/modules/wiki.js @@ -611,19 +611,14 @@ exports.callSaver = function(method /*, args */ ) { /* Save the wiki contents. Options are: - saveEmpty: causes the wiki to be saved without any content template: the tiddler containing the template to save downloadType: the content type for the saved file */ exports.saveWiki = function(options) { options = options || {}; var template = options.template || "$:/core/templates/tiddlywiki5.template.html", - downloadType = options.downloadType || "text/plain", - renderOptions = {}; - renderOptions["with"] = options.saveEmpty ? - [undefined,"[!is[shadow]is[shadow]]"] : - [undefined,"[!is[shadow]]"]; - var text = this.renderTiddler(downloadType,template,renderOptions); + downloadType = options.downloadType || "text/plain"; + var text = this.renderTiddler(downloadType,template); this.callSaver("save",text); };