1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-28 20:39:55 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/editions/TiddlyWiki5_Static_Site_Generation.tid
2013-12-11 07:57:12 +00:00

21 lines
1.3 KiB
Plaintext

created: 20130828190200000
modified: 20131129095228854
tags: howto
title: TiddlyWiki5 Static Site Generation
type: text/vnd.tiddlywiki
TiddlyWiki5 can be used to generate a static HTML representation of a TiddlyWiki that doesn't need JavaScript.
! Example
You can explore a static representation of the TiddlyWiki5 site at <a href="static.html">static.html</a>. That file is a static representation of the current DefaultTiddlers. Any tiddlers that it links to are referred to via URLs of the form `/static/HelloThere.html` that point to HTML representations of individual tiddlers. The tiddler HTML files reference a `static.css` stylesheet file.
The included `bld.sh` script includes these commands that are involved in generating the sample static version of the TiddlyWiki5 site:
```
--rendertiddler $:/core/templates/static.template.html $TW5_BUILD_OUTPUT/static.html text/plain \
--rendertiddler $:/core/templates/static.template.css $TW5_BUILD_OUTPUT/static/static.css text/plain \
--rendertiddlers [!is[system]] $:/core/templates/static.tiddler.html $TW5_BUILD_OUTPUT/static text/plain \
```
The first RenderTiddlerCommand saves the static version of the DefaultTiddlers, the second saves the stylesheet, and the final RenderTiddlersCommand generates the HTML representations of individual tiddlers.