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
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.