Hi,
I know this topic has been discussed in the past, I'm just summarizing
my limited experiences for anyone interested, or with comments on how
they have handled this task. My wife volunteers to maintain a very
simple non profit web site (header an footer, and a handful of content
pages that change frequently), and my initial solution was to give her
my favorite text editor, but after viewing some of her struggles I
thought wiki syntax (or possibly inclusion of one of the several
wysiwyg plugins) would be a more productive path for her.
I'll note, one of the difficulties (an benefits) of Tiddlywiki is the
number of plugins with overlap, it requires some time from the user to
investigate what is the optimal solution for their problem. My
understanding is that there are three plugins suitable for html
publication:
1.
http://www.tiddlytools.com/#SnapshotPluginInfo
This is a nice plugin, an it comes with a print command too, but the
html it produced was not ideal for my needs, and it did not appear to
be easily templated.
*also, does not have ability to export based on tag, but this could
easily be added - it uses the story function to export all open
tiddlers though - which may be preferential for some use cases
*there is more control over what is exported from the tiddlywiki with
this plugin (based on DOM id, etc.), but all I need is the tiddler
content, and maybe the title of the tiddler as the page name, and this
is already handled nicely by the PublishMacro - this plugin requests a
filename each time you save too which seems bothersome and prone to
errors when maintaining the url space between the different pages
(e.g. what did I call the link to this page again?), compared to the
default (TiddlerTitle) used by the PublishMacro
2.
http://jackparke.googlepages.com/jtw.html#PublishMacro
This is my current choice, since it has easy to modify templates. She
can publish all the pages based on tag, or an individual page.
3.
http://www.tiddlywiki.org/wiki/TiddlyTemplating
This seems to be the most flexible, and I certainly like the idea of
publishing to multiple formats as this is a goal I have for another
project I am interested to apply Tiddlywiki. However, it did not pass
the ten minute test, there are several plugins associated with this
package and I did not invest the time to get my hands around
everything happening. I did look at the iwab demo (I believe this is
the only html example), but again the other two plugins seemed simpler
to get me where I needed to be.
okay, I do not believe any are what most people are looking for when
maintaining a simple static site - e.g. both plugins handle
TiddlyLinks in a less than optimal way, but the PublishMacro is still
the better of the two, but if you have a wiki word (camelcase) in your
content it will assume there is a link there an write an href in the
html
to illustrate the differences, here is the simple test case I ran,
using the default plugin setup, keeping in mind the PublishMacro has
templates that seem very easy to modify (although I haven't tried
yet):
My Tiddler content - for atiddler name qwert
------------------------------------
foo
PublisherTest1
PublisherTest2
PublisherTest3 (this tiddler does not actually exist)
PublishMacro Output
-------------------------------
<html>
<head>
<title> - qwert</title>
<link rel="stylesheet" type="text/css" href="style.css"/>
<meta name="keywords" content=""/>
</head>
<body>
<h1></h1>
<h2>qwert</h2>
foo<br><br><a class="externalLink"
href="publishertest1.html">PublisherTest1</a><br><a
class="externalLink" href="publishertest2.html">PublisherTest2</
a><br><a class="externalLink"
href="publishertest3.html">PublisherTest3</a>
<hr>Tags:
<hr>IanW, Sunday, June 22, 2008 8:27:30 PM (created Sunday, June
22, 2008 8:17:26 PM)
</body>
</html>
SnapshotPlugin Output
----------------------------------
<html><head>
</head><body>
<div class='tiddler viewer'>foo<br><br><a tiddlylink="PublisherTest1"
refresh="link" class="tiddlyLink tiddlyLinkExisting"
title="PublisherTest1 - IanW, Monday, June 16, 2008 2:58:00 PM"
href="javascript:;">PublisherTest1</a><br><a
tiddlylink="PublisherTest2" refresh="link" class="tiddlyLink
tiddlyLinkExisting" title="PublisherTest2 - IanW, Sunday, June 22,
2008 7:58:00 PM" href="javascript:;">PublisherTest2</a><br><a
tiddlylink="PublisherTest3" refresh="link" class="tiddlyLink
tiddlyLinkNonExisting" title="The tiddler 'PublisherTest3' doesn't yet
exist" href="javascript:;">PublisherTest3</a></div>
</body>
</html>
Hopefully a listing of my brief experience is helpful to someone else.
Of course, I'm also curious to here anyone's comments or solutions
they applied, since it seems like a common use case.
Since this is my first post, I also want to thank everyone for a
useful piece of software. Like many people, I see Tiddlywiki as a nice
client api, that has potential to become much more.
ian w.