ThemedTiddlerPlugin

8 views
Skip to first unread message

Paul Downey (psd)

unread,
Oct 16, 2009, 11:04:08 AM10/16/09
to TiddlyWiki
Announcing the ThemedTiddlerPlugin:

http://whatfettle.com/2008/07/ThemedTiddlerPlugin/

which allows a tiddler to reference a "mini-theme" tiddler using a
"theme" extended field.

A "mini-theme" is a tiddler containing a ViewTemplate, EditTemplate
and Stylesheet and a TiddlyWiki may contain several mini-theme
tiddlers. This is an alternative approach to my TaggedTemplatePlugin:

http://whatfettle.com/2008/07/TaggedTemplatePlugin/

and Eric's TaggedTemplateTweak which use tags to pull in
tagEditTemplate, tagViewTemplates with the advantage of bundling the
two tiddlers into a single tiddler and supporting multiple
stylesheets.

Using an extended field might be a little less convenient than a tag,
but is more explicit and efficiently implemented. We put this together
to implement the Powerpoint/Keynote/Open Office concept of a "master
slide" for TiddlySlidy which is a very embryonic development, started
at a recent Osmosoft hackathon:

http://svn.tiddlywiki.org/Trunk/verticals/TiddlySlidy/

Enjoy!
--
Paul (psd)
http://blog.whatfettle.com

Tobias - http://tbGTD.tiddlyspot.com

unread,
Oct 16, 2009, 11:38:04 AM10/16/09
to TiddlyWiki
Hi Paul,

Short and sweet, I guess I'll use that right away.

Thanks!

Eric Shulman

unread,
Oct 16, 2009, 12:02:42 PM10/16/09
to TiddlyWiki
> Eric's TaggedTemplateTweak which use tags to pull in
> tagEditTemplate, tagViewTemplates with the advantage of bundling the
> two tiddlers into a single tiddler and supporting multiple
> stylesheets.

TaggedTemplateTweak already fully supports using themes and section
references using a 'template prefix' based on tags, field values or
even specific tiddler titles, so you can can put the alternative
"typed" template definitions into sections of a theme and have it all
defined in one tiddler.

TaggedTemplateTweak also supports using a *field* (default
name=template) to store the 'template prefix', so you do *not* have to
use tags to differentiate tiddler 'types'. Thus, if you are using a
Theme (e.g. "SomeTheme") that contains custom templates defined using
sections, they can be accessed by using the value in the tiddler's
'template' prefix field to automatically locate the desired
definitions, e.g.,:
SomeTheme##prefixViewTemplate
SomeTheme##prefixEditTemplate

In fact, TaggedTemplateTweak can support ALL of the following
references to templates, list in the order of precedence

theme##SomeTitleViewTemplate
SomeTitleViewTemplate
theme##fieldvalueViewTemplate
fieldvalueViewTemplate
theme##tagvalueViewTemplate
theme##TagvalueViewTemplate (capitalized)
tagvalueViewTemplate
TagvalueViewTemplate (capitalized)

(note: of course, the same handling and precedence applies to
"...EditTemplate" definitions as well)

-e


Tobias - http://tbGTD.tiddlyspot.com

unread,
Oct 16, 2009, 12:23:46 PM10/16/09
to TiddlyWiki
Hi Paul,

Just found TiddlyResume... as linked here:
http://whatfettle.com/2008/07/TaggedTemplatePlugin/

That is really neat! To cook any of these:
http://svn.tiddlywiki.org/Trunk/verticals/

...would I need a running tiddlyweb and import a certain folder from
svn? ...or...
...are there some online-cooks that allow me to cook your stuff on the
fly?

Tobias.

Paul Downey (psd)

unread,
Oct 16, 2009, 3:21:25 PM10/16/09
to TiddlyWiki
Hi Eric!

> In fact, TaggedTemplateTweak can support ALL of the following
> references to templates, list in the order of precedence

Fantastic. But it doesn't fit the bill for our use-case, and I much
prefer something smaller and focussed.

I also enjoyed coding this, using qunit for tests (the hopefully green
bar at the bottom of the file).

Best,

Paul Downey (psd)

unread,
Oct 16, 2009, 3:34:56 PM10/16/09
to TiddlyWiki
On Oct 16, 5:23 pm, "Tobias - http://tbGTD.tiddlyspot.com"
<beertob...@googlemail.com> wrote:
> Hi Paul,
>
> Just found TiddlyResume... as linked here:http://whatfettle.com/2008/07/TaggedTemplatePlugin/
>
> That is really neat! To cook any of these:http://svn.tiddlywiki.org/Trunk/verticals/
>
> ...would I need a running tiddlyweb and import a certain folder from
> svn?  

If you checkout http://svn.tiddlywiki.org then you should just be able
to run cook, but mostly subversion is for development, so unless you
want to develop, I'd stick with the released versions:

http://tiddlyresume.com
http://tiddlypocketbook.com
etc

I tend to release my plugins, here:

http://whatfettle.com/2008/07/

> ...or...
> ...are there some online-cooks that allow me to cook your stuff on the
> fly?

Saq has a site called "chef" which used to do this nicely:

http://chef.lewcid.org/

but doesn't seem to work anymore .. at least not for my recipes which
depend on the $TW_ROOT variable, which may be the problem.

Here's A quick start guide to using subversion on Unix/Cygwin shell:

$ mkdir tiddlywiki
$ cd tiddlywiki
$ svn co svn.tiddlywiki.org/Trunk/
$ cd Trunk
$ export TW_TRUNKDIR=$PWD
$ PATH=$PATH:$TW_TRUNKDIR/tools/cooker/bash
$ cd contributors/PaulDowney/plugins/FadingMessagesPlugin
$ cook
$ open index.html

HTH
Reply all
Reply to author
Forward
0 new messages