<h1class=''>Welcome to <aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a></h1><p>This is the developer documentation hub for <aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a>. This site contains all of the end user documentation that appears at <aclass='tw-tiddlylink-external'href='http://five.tiddlywiki.com/'target='_blank'>http://five.tiddlywiki.com/</a>.</p><h1class=''>Overview</h1><ul><li><aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/TiddlyWikiArchitecture.html'>TiddlyWikiArchitecture</a></li><li><aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/TiddlyWiki5%20Development%20Environment.html'>TiddlyWiki5 Development Environment</a></li><li><aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/Building%20classic%20TiddlyWiki%20with%20TiddlyWiki5.html'>Building classic TiddlyWiki with TiddlyWiki5</a></li></ul><h1class=''>Developer Cookbooks</h1><div><aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/Using%20TiddlyWiki%20for%20GitHub%20Pages%20project%20documentation.html'>Using TiddlyWiki for GitHub Pages project documentation</a></div><h1class=''>Internal Objects and Mechanisms</h1><div><aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/BootMechanism.html'>BootMechanism</a></div><div><aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/DraftMechanism.html'>DraftMechanism</a></div><div><aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/EncryptionMechanism.html'>EncryptionMechanism</a></div><div><aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/LazyLoadingMechanism.html'>LazyLoadingMechanism</a></div><div><aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/ParsingMechanism.html'>ParsingMechanism</a></div><div><aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/PluginMechanism.html'>PluginMechanism</a></div><div><aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/RenderingMechanism.html'>RenderingMechanism</a></div><h1class=''>Getting started with <aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> under Node.js</h1><p><aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> can be used on the command line to perform an extensive set of operations based on tiddlers, <aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/TiddlyWikiFolders.html'>TiddlyWikiFolders</a>, <aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/TiddlerFiles.html'>TiddlerFiles</a> and <aclass=' tw-tiddlylink tw-tiddlylink-missing'href='http://five.tiddlywiki.com/static/TiddlyWikiFiles.html'>TiddlyWikiFiles</a>. For example, the following command loads the tiddlers from a <aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> HTML file and then saves one of them in HTML:</p><pre>node tiddlywiki.js --verbose --load mywiki.html --rendertiddler ReadMe ./readme.html</pre><p>In order to use <aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> on the command line you must first install node.js from <aclass='tw-tiddlylink-external'href='http://nodejs.org/'target='_blank'>http://nodejs.org/</a></p><h2class=''>Usage</h2><p>Running <code>tiddlywiki.js</code> from the command line boots the <aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/TiddlyWiki.html'>TiddlyWiki</a> kernel, loads the core plugins and establishes an empty
/jermolene.github.com/ - Directory for output files</pre><p>You can override the build output directory by defining the environment variable <code>TW5_BUILD_OUTPUT</code>. The easiest way to do this is to create a personal batch file to invoke <aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> that first sets the environment variable and then invokes <code>bld</code>.</p><p>The files output by <code>bld</code> are:</p><ul><li><code>readme.md</code> main readme file, output to the <aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> directory</li><li><code>index.html</code><aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> standalone HTML file with content from the <code>tw5.com</code> edition</li><li><code>empty.html</code><aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> standalone HTML file with no content</li><li><code>encrypted.html</code><aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> standalone HTML file encrypted with the password <code>password</code></li><li><code>test.html</code><aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> browser-based test suite (see <aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/TestingMechanism.html'>TestingMechanism</a>)</li><li><code>static.html</code> static HTML version of the <aclass=' tw-tiddlylink tw-tiddlylink-missing'href='http://five.tiddlywiki.com/static/DefaultTiddlers.html'>DefaultTiddlers</a> of the <code>tw5.com</code> edition</li><li><code>static/*.html</code> and <code>static/static.css</code> static HTML versions of individual tiddlers</li></ul><p><code>bld</code> also runs the <aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> Node.js-based test suite (see <aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/TestingMechanism.html'>TestingMechanism</a>)</p><h3class=''><code>serve.sh <username></code> or <code>serve.cmd <username></code>: serves tw5.com</h3><p>This script starts <aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> running as an HTTP server with the content from the <code>clientserver</code> edition. By default, the Node.js serves on port 8080. If the optional <code>username</code> parameter is provided, it is used for signing edits.</p><p>To experiment with this configuration, run the script and then visit <code>http://0.0.0.0:8080</code> in a browser.</p><p>Changes made in the browser propagate to the server over HTTP (use the browser developer console to see these requests). The server then syncs changes to the file system (and logs each change to the screen).</p><h3class=''><code>wbld</code>: builds <aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> for <aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/TiddlyWeb.html'>TiddlyWeb</a></h3><p>This script builds and deploys the code for <aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/TiddlyWiki5%20in%20the%20Sky%20for%20TiddlyWeb.html'>TiddlyWiki5 in the Sky for TiddlyWeb</a>. If you want to experiment with your own builds of <aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/TiddlyWiki5.html'>TiddlyWiki5</a> for <aclass=' tw-tiddlylink tw-tiddlylink-resolves'href='http://five.tiddlywiki.com/static/TiddlyWeb.html'>TiddlyWeb</a> you could use this batch file as a base.</p><h3class=''><code>2bld</code>: builds <aclass='tw-tiddlylinktw-tiddlylink-reso