1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-19 08:14:50 +00:00
TiddlyWiki5/cook.js

16 lines
357 B
JavaScript
Raw Normal View History

2011-11-22 14:29:29 +00:00
// 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);
console.log(theRecipe.cook());