1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 12:07:19 +00:00
TiddlyWiki5/cook.js

19 lines
437 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>
/*global require: false, exports: false */
"use strict";
var WikiStore = require("./js/WikiStore.js").WikiStore,
Recipe = require("./js/Recipe.js").Recipe,
util = require("util");
2011-11-22 14:29:29 +00:00
var filename = process.argv[2];
var store = new WikiStore();
2011-11-22 14:29:29 +00:00
var theRecipe = new Recipe(store,filename,function() {
process.stdout.write(theRecipe.cook());
});