Note: An alternative skin, TW4MW (work in progress), is available from the user preferences.

TiddlyTemplating/Publishing

TiddlyWiki Community Wiki

Jump to: navigation, search

Contents

[edit] Publishing files from a TiddlyWiki

This page explains how you can use the TiddlyTemplating macro to turn your tiddler content into all sorts of output files. For more detail on the plugin itself, please see the TiddlyTemplatingMacro page.

NB: The TiddlyTemplating macro is not part of the set of plugins currently under consideration for inclusion in the core and the publishing mechanism may be exposed in a different way. Information will be posted here as things develop (9th July '08).

[edit] Simple Example - Tiddler to CSV

We can serialize and publish our tiddlers to a comma-separated variables (CSV) file by using this invocation of the TiddlyTemplating macro:

<<TiddlyTemplating CsvTemplate filter:[tag[data]] fileName:tiddlers.csv>>

where CsvTemplate is:

<!--<<view title>>-->,<!--<<view text>>-->,<!--<<view tags>>-->

Note the line-break at the end of the line!

This will create a file named tiddlers.csv populated with any tiddlers tagged with "data".

[edit] Real-life examples

[edit] TiddlyCity (working title) KML and GeoRSS publishing

TiddlyCity takes your tweets and geocodes any location data so they can be displayed on a map. A KML file is generated for use with Google Maps and GeoRSS is generated for use with Yahoo! Maps.

TiddlyCity can be found here: http://jnthnlstr.googlepages.com/TiddlyCity.html

To see the templates, go to the 'sidebar' tab in the backstage area (you'll want to download the TiddlyWiki to see this) and look down the timeline.

[edit] JoshuaBradley.co.uk

JoshuaBradley.co.uk was created using this TiddlyWiki, which is a set of templates and content pulled together to look like a website Content Management System, codenamed "JoshuaTree".

Templates can be found from the timeline on the right-hand side of the page.

[edit] I Want A Blog concept illustrator

"I Want A Blog" was put together to try and give an example of how TiddlyTemplating could be used to do something powerful and interesting. Please the IWantABlog page for more information.

Personal tools