mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Fix and a script for serving wikis over http
Makes it easier to test on the iPad
This commit is contained in:
parent
00822a43ec
commit
b1b893c692
@ -167,10 +167,7 @@ var commandLineSwitches = {
|
|||||||
// Dumbly, this implementation wastes the recipe processing that happened on the --recipe switch
|
// Dumbly, this implementation wastes the recipe processing that happened on the --recipe switch
|
||||||
http.createServer(function(request, response) {
|
http.createServer(function(request, response) {
|
||||||
response.writeHead(200, {"Content-Type": "text/html"});
|
response.writeHead(200, {"Content-Type": "text/html"});
|
||||||
var store = new WikiStore();
|
response.end(recipe.cook(), "utf8");
|
||||||
var recipe = new Recipe({store: store,filepath: lastRecipeFilepath},function() {
|
|
||||||
response.end(recipe.cook(), "utf8");
|
|
||||||
});
|
|
||||||
}).listen(port);
|
}).listen(port);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user