mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
dd9537cd88
Much less confusing.
19 lines
437 B
JavaScript
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());
|
|
});
|