On Fri, 26 Apr 2013, Tobias Beer wrote:
> Hi everyone, mostly Chris, i guess...
Sorry for the lateness of my response. I spent the weekend hiding from
computers (and sleeping on a beach) to recover from the over indulgence
associated with rebuilding
tiddlyspace.com
> For a while now I have postponed the project of moving all stuff beforehand
> scattered throughout a number of TiddlyWikis and TiddlySpaces into a yet to
> be installed instance of TiddlyWeb/TiddlyWebWiki that allows me to manage
> it all.
Oh, cool. I personally think that individuals or small groups running
their own TiddlyWeb servers provides the most functionality and
flexibility over the long run and is also most in alignment with
having a distributed and open web.
TiddlySpace is sort of a gateway drug.
> 1)
> 1a) I'd like an easy way to chose (and modify) a default theme for all
> 'spaces' and be done with it.
This is a classic example of one of the problems which recipes and the
recipe cascade[1] are supposed to solve. The "space" concept in
TiddlySpace hides much of this but the basic idea is that a recipe is
made up a series of bags. For this particular problem you could make a
recipe (let's call it A) which is made up of:
* the system bag
* a bag (or more) for your various plugins and customizations
* a bag which contains the things needed for your theme
* a content bag
> 1b) I'd also like to be able to override the default theme in a per space
> basis.
This would use a different recipe, B, which is quite a lot like A but:
* the system bag
* the various plugins bag
* some other theme
* a content bag
OR
* the system bag
* the various plugins bag
* the original theme bag
* a bag containing overrides for the original theme
* a content bag
You can have as many bag as you want in a recipe, and can use filters
to select only those tiddlers from the bag that are useful to you. If
there are duplicate tiddler titles, the tiddler that is in a bag that
is lower down in the list wins.
So, for example a later bag can clobber a StyleSheet tiddler.
[1]
http://tiddlyweb.tiddlyspace.com/recipe%20cascade
--
Chris Dent
http://burningchrome.com/
[...]