1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00
TiddlyWiki5/cook.js
Jeremy Ruston bc07764e40 Used stout.write() instead of console.log()
Because console.log() processes C/C++ printf() style markers such as
"%d", which happens to appear in the jQuery source code.
2011-11-26 11:18:39 +00:00

16 lines
366 B
JavaScript

// Cook a TiddlyWiki recipe and send it to STDOUT
//
// Usage: node cook.js <recipefile>
var sys = require("sys"),
tiddlywiki = require("./js/TiddlyWiki.js"),
recipe = require("./js/Recipe.js");
var filename = process.argv[2];
var store = new tiddlywiki.TiddlyWiki();
var theRecipe = new recipe.Recipe(store,filename);
process.stdout.write(theRecipe.cook());