1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00
TiddlyWiki5/cook.js
2011-12-06 18:29:53 +00:00

19 lines
437 B
JavaScript

// Cook a TiddlyWiki recipe and send it to STDOUT
//
// Usage: node cook.js <recipefile>
/*global require: false, exports: false */
"use strict";
var WikiStore = require("./js/WikiStore.js").WikiStore,
Recipe = require("./js/Recipe.js").Recipe,
util = require("util");
var filename = process.argv[2];
var store = new WikiStore();
var theRecipe = new Recipe(store,filename,function() {
process.stdout.write(theRecipe.cook());
});