Provide api to read/write single tid file
linonetwo opened this issue · 4 comments
So we can write a tiddloid-sync-adaptor to lazy-load huge wiki.
And only save html with skinny tiddlers and plugins, this can be done by a save template.
(or maybe just save an empty html, even no need to save html, always use an empty html? I need to check what included in a lazy nodejs wiki generated HTML.)
I can test this in TidGi, if I can use an empty html with a dedicated sync-adaptor, to load nodejs wiki's multiple.tid files and plugin json.
Skinny tiddlers can be loaded by porting related logic from tw core to Java. The only problem maybe loading plugins TiddlyWiki/TiddlyWiki5#7685
@Jermolene do you think this is possible?
Hi @linonetwo yes, I do think that that approach is practical. I tend to prefer using a fully populated HTML file but it's perfectly feasible to use an empty one.
https://github.com/nathanielknight/tiddly-wiki-server#differences-from-tiddlywiki seems already implement this trick. I will test it in https://github.com/tiddly-gittly/TidGi-Mobile which uses react native, that is much easier for me and GPT to write...
Implemented in https://github.com/tiddly-gittly/TidGi-Mobile , V0.0.4 released.