Thanks Jeremy - I don't think the lack of refresh will be an issue (as I understand the limitation), but I can cross the bidge if I need to later. I suspect you've given me enough to go on, and I think I can puzzle out the "require" and "exports" mechanism, but I do have a couple of questions if you have the time:
My google-driven understanding of require/exports is that it's node, not javascript. I know TW5 is built around node, but I'm not running it. So, is the TW5 core emulating something in mode? Is there a good place to read up on this? Also, I had a look at
|
var Widget = require("$:/core/modules/widgets/widget.js").widget; |
|
, which I assume is what you wanted me to look at.
I'm sure a bunch of trial-and-error will get me home, but:
1.) I don't think I'll be putting my code into "$:/core/modules" anytime soon. Or is that where they have to go for this to work?
2.) is that statement a specific instance of "var Anyname = require("anywhere/anycode.anysuffix").anymethod? It's not clear to me which of those elements are by documentary convenience & which are by necessity.
I would love to find stuff to copy/modify, but it's easier said than done. When I got into this originally, I couldn't find anyone else interested in analysing/annotating text. I had the time to look at a ton of TWC stuff then; now, it's taken me a year to get around to getting out of Tiddlyspace & upgrading to TW5.
Anyway I very much appreciate your work & help. I actually submitted my MA research paper as a TWC tiddlywiki a few years ago - my supervisor was so impressed by the technology she forgot to check the content, which was fine by me :-) The examiners likewise. (That had things in it that were more "standard"; bibliography, for example, so copy/modify was easier) Probably I should offer to share it with you.
Cheers, Andrew