mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-16 23:04:50 +00:00
20f03de712
Getting rid of the old widget mechanism files finally gives us a payoff for all the refactoring. Still a bit of tidying up to do, and we need to re-introduce the animation mechanisms.
35 lines
1.4 KiB
Markdown
35 lines
1.4 KiB
Markdown
<h1 class=''>
|
|
Building classic <span>
|
|
TiddlyWiki</span> with <span>
|
|
TiddlyWiki5</span></h1><p>
|
|
<span>
|
|
TiddlyWiki5</span> can be used to build older 2.x.x versions of <span>
|
|
TiddlyWiki</span> from their constituent components. Doing so involves these additional features over and above those used for building <span>
|
|
TiddlyWiki5</span>:</p><ul>
|
|
<li>
|
|
The <code>
|
|
tiddlywiki2/loadrecipe</code> plugin, containing a deserializer module which allows tiddlers to be loaded from <span>
|
|
TiddlyWiki</span> 2.x.x <code>
|
|
.recipe</code> files</li><li>
|
|
The <code>
|
|
tiddlywiki2/stripcomments</code> plugin, containing a new viewer format for the <code>
|
|
<$view></code> widget that strips single line <span>
|
|
JavaScript</span> comments starting <code>
|
|
//#</code></li><li>
|
|
The <code>
|
|
stripTitlePrefix='yes'</code> attribute of the <code>
|
|
<$fields></code> widget, which removes prefixes wrapped in curly braces from the <code>
|
|
title</code> attribute<ul>
|
|
<li>
|
|
For example, <code>
|
|
{tiddler}HelloThere</code> would be transformed to <code>
|
|
HelloThere</code></li></ul></li></ul><h1 class=''>
|
|
Usage</h1><p>
|
|
<span>
|
|
TiddlyWikiClassic</span> is built from the command line by running <span>
|
|
TiddlyWiki5</span> under node.js. A typical usage would be:</p><pre>
|
|
node ../../tiddlywiki.js \
|
|
--verbose \
|
|
--load <path_to_recipe_file> \
|
|
--rendertiddler $:/core/templates/tiddlywiki2.template.html <path_to_write_index_file> text/plain \
|
|
|| exit 1</pre> |