1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-24 10:37:20 +00:00
TiddlyWiki5/editions/tw2/readme.md

36 lines
1.4 KiB
Markdown
Raw Normal View History

2013-02-09 17:08:28 +00:00
<h1 class=''>
2013-03-02 13:14:56 +00:00
Building classic <span>
TiddlyWiki</span> with <span>
TiddlyWiki5</span></h1><div class='tw-transclude'>
<p>
2013-03-01 18:08:15 +00:00
<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>
2013-02-09 17:08:28 +00:00
<li>
The <code>
2013-03-01 18:08:15 +00:00
tiddlywiki2/loadrecipe</code> plugin, containing a deserializer module which allows tiddlers to be loaded from <span>
TiddlyWiki</span> 2.x.x <code>
2013-02-09 17:08:28 +00:00
.recipe</code> files</li><li>
The <code>
tiddlywiki2/stripcomments</code> plugin, containing a new viewer format for the <code>
2013-03-01 18:08:15 +00:00
&lt;$view&gt;</code> widget that strips single line <span>
JavaScript</span> comments starting <code>
2013-02-09 17:08:28 +00:00
//#</code></li><li>
The <code>
stripTitlePrefix='yes'</code> attribute of the <code>
&lt;$fields&gt;</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>
2013-03-01 18:08:15 +00:00
<span>
TiddlyWikiClassic</span> is built from the command line by running <span>
TiddlyWiki5</span> under node.js. A typical usage would be:</p><pre>
2013-02-09 17:08:28 +00:00
node ../../tiddlywiki.js \
2013-01-22 09:30:24 +00:00
--verbose \
--load &lt;path_to_recipe_file&gt; \
--savetiddler $:/core/templates/tiddlywiki2.template.html &lt;path_to_write_index_file&gt; text/plain \
2013-03-02 13:14:56 +00:00
|| exit 1</pre></div>