kopia lustrzana https://github.com/miklobit/TiddlyWiki5
16 wiersze
359 B
JavaScript
16 wiersze
359 B
JavaScript
// Cook a TiddlyWiki recipe and send it to STDOUT
|
|
//
|
|
// Usage: node cook.js <recipefile>
|
|
|
|
var TiddlyWiki = require("./js/TiddlyWiki.js").TiddlyWiki,
|
|
Recipe = require("./js/Recipe.js").Recipe;
|
|
|
|
var filename = process.argv[2];
|
|
|
|
var store = new TiddlyWiki();
|
|
|
|
var theRecipe = new Recipe(store,filename,function() {
|
|
process.stdout.write(theRecipe.cook());
|
|
});
|
|
|