1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-28 02:50:27 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/Building_classic_TiddlyWiki_with_TiddlyWiki.tid

22 lines
1.1 KiB
Plaintext
Raw Normal View History

2013-03-02 13:14:56 +00:00
title: Building classic TiddlyWiki with TiddlyWiki5
2013-01-22 09:08:26 +00:00
TiddlyWiki5 can be used to build older 2.x.x versions of TiddlyWiki from their constituent components. Doing so involves these additional features over and above those used for building TiddlyWiki5:
2013-01-22 09:30:24 +00:00
* The `tiddlywiki2/loadrecipe` plugin, containing a deserializer module which allows tiddlers to be loaded from TiddlyWiki 2.x.x `.recipe` files
* The `tiddlywiki2/stripcomments` plugin, containing a new viewer format for the `<$view>` widget that strips single line JavaScript comments starting `//#`
2013-01-22 09:08:26 +00:00
* The `stripTitlePrefix='yes'` attribute of the `<$fields>` widget, which removes prefixes wrapped in curly braces from the `title` attribute
2013-01-22 09:30:24 +00:00
** For example, `{tiddler}HelloThere` would be transformed to `HelloThere`
! Usage
TiddlyWikiClassic is built from the command line by running TiddlyWiki5 under node.js. A typical usage would be:
```
node ../../tiddlywiki.js \
--verbose \
--load <path_to_recipe_file> \
--rendertiddler $:/core/templates/tiddlywiki2.template.html <path_to_write_index_file> text/plain \
2013-01-22 09:30:24 +00:00
|| exit 1
```
2013-01-22 09:08:26 +00:00