Factoring out tiddlywiki save functionality

0 views
Skip to first unread message

David

unread,
Nov 27, 2008, 7:11:18 PM11/27/08
to TiddlyWikiDev
I'm hoping to develop a tiddlywikiish tool, but one whose data model
is so different that I need to abandon much of the core code. What I
would like to keep is the robust cross-platform saving functionality.
Has anyone factored that out of the code for some purpose, or can
anyone tell me where I can find a dependency graph that will tell me
which pieces of core I need to hang on to in order to get that save
capability?

Thanks
David

simon mcmanus

unread,
Nov 28, 2008, 4:06:53 AM11/28/08
to Tiddly...@googlegroups.com
Hi David,

Have you investigated adaptors?

They allow you to completely change the saving behaviour of TiddlyWiki  without needing to change the core code.  They are mainly used for things like ccTiddly and Tiddlyweb when you wish to save your TiddlyWiki file to a server.

Martin has some examples here :

martinswiki.com

Thanks

Simon




2008/11/28 David <david....@gmail.com>



--
Simon McManus

blog : http://simonmcmanus.com

FND

unread,
Nov 28, 2008, 6:34:50 AM11/28/08
to Tiddly...@googlegroups.com
> keep is the robust cross-platform saving functionality.
> Has anyone factored that out of the code for some purpose

I think the basic file-system code is self-contained, with the
TiddlyWiki-specifics residing in a separate module:
http://trac.tiddlywiki.org/browser/Trunk/core/js/FileSystem.js
http://trac.tiddlywiki.org/browser/Trunk/core/js/Saving.js

FWIW, there are several projects already using TW's file-saving code,
e.g. MesageVault[1] or YourTimeSheets[2]/YourFormBuilder[3]. (Note that
their file-saving code might not be up to date.)

We're also currently experimenting with using jQuery in TiddlyWiki,
which has resulted in jQuery plugins for loading and saving files:
http://trac.tiddlywiki.org/browser/Branches/jcore/jquery/plugins

HTH.


-- F.


[1] http://messagevault.org
[2] http://yourtimesheets.com
[3] http://yourformbuilder.com

David

unread,
Nov 29, 2008, 11:57:11 PM11/29/08
to TiddlyWikiDev
Thanks for the info. I've looked at FileSystem.js, and you are right
that it is nicely self contained. Regarding the jquery plugins, are
these something you are writing for tiddlywiki, to replace
Filesystem.js, or something that already exists in jquery that you are
thinking of using tiddlywiki? If the former, is there a home location
for this code elsewhere?

FND

unread,
Nov 30, 2008, 8:23:22 AM11/30/08
to Tiddly...@googlegroups.com
> Regarding the jquery plugins, are these something you are writing for
> tiddlywiki, to replace Filesystem.js, or something that already exists
> in jquery

We've refactored the existing code to take advantage of certain jQuery
features - so it's still pretty much the same TiddlyWiki code.

> is there a home location for this code elsewhere?

Not quite sure what you mean. If the jQuery experiment proves to be
viable, this will eventually end up in the core.
For now, it's just that experimental "jcore" branch though.


-- F.

Reply all
Reply to author
Forward
0 new messages