> Did you consider making a recipe in tiddlyspace which is (let's call
> it twcom for this example):
>
> /bags/tiddlywiki-com_public/tiddlers
> /bags/tiddlywiki-com-ref_public/tiddlers

I actually did consider that, but it didn't buy much for the overhead
of creating and maintaining a recipe to match the space inclusion. As
it is the list of bags cooked is in two places: the recipe and
hard-coded in the pull script. Ideally the pull script should be more
generic and take a parameter pointing to a space ..

> In fact, you can probably skip all that and just do it on the fly by
> doing the following (since @tiddlywiki-com includes @tiddlywiki-com-
> ref):
>
> http://tiddlywiki-com.tiddlyspace.com/recipes/tiddlywiki-com_public/tiddlers.wiki?mselect=bag:tiddlywiki-com_public,bag:tiddlywiki-com-ref_public

I guess that would save having to perform multiple curls.

I did anticipate evolving the pull.sh into a script which grabs the
fat JSON for a recipe, ignored the system bags and makes the
conversion in memory, rather than exploding into .tid files as at
present. That way we could have an external CGI to fetch any space and
cook a TiddlyWiki.

The main concern with this hack was to mirror the current cook process
as much as possible. I actually anticipated more magic being required,
such as templates, but in the end the recipe is fairly simple.

I do cook against a tagged version of the core, to match the current
release process.

> However you still end up with a tiddlywiki that that server.* fields
> as attributes on the tiddlers, which is presumably undesirable so some
> of the steps in your pull.sh would still be required, but this might
> remove a couple. If having those server fields is okay, then you might
> be able to just curl the file into place as needed.

Quite, and as in a previous email, whitespace introduced in the .tid
files and other artefacts coming from TiddlySpace are the biggest
issue, here.

I guess having built a process, we can refine it / replace it with
something less bodged and more mainstream TiddlyWeb.

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

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywikidev?hl=en.

Reply via email to