1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-05 19:53:17 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/guides/Getting_started_with_TiddlyWiki_under_node.js.tid
2012-11-16 21:20:27 +00:00

29 lines
1.0 KiB
Plaintext

title: Getting started with TiddlyWiki under node.js
modifier: JeremyRuston
tags: guide
TiddlyWiki5 can be used on the command line to perform an extensive set of operations based on tiddlers, TiddlerFiles and TiddlyWikiFiles. For example, this loads the tiddlers from a TiddlyWiki HTML file and then saves one of them in HTML:
{{{
node core/boot.js --verbose --load mywiki.html --savetiddler ReadMe ./readme.html
}}}
!!Usage
Running `boot.js` from the command line boots the TiddlyWiki kernel, loads the core plugins and establishes an empty wiki store. It then sequentially processes the command line arguments from left to right. The arguments are separated with spaces. The commands are identified by the prefix `--`.
{{{
node core/boot.js [--<option> [<arg>[,<arg>]]]
}}}
!! Batch Files
For trying TiddlyWiki5 out under node.js, two batch files are provided:
* `run.sh` runs the wikitests
* `bld.sh` builds the new TiddlyWiki 5 HTML file (placed in the `tmp/tw5/` directory by default)
!!Commands
The following commands are available: