wierd node.js questions

46 views
Skip to first unread message

David Gifford

unread,
Oct 9, 2019, 10:03:58 PM10/9/19
to TiddlyWiki
Hi all

I am not really up to snuff on node.js, so I am asking these questions to see whether this is worth my time to experiment on or not.

If I had a number of standalone TiddlyWikis, and in one of them I had a tiddler Pomeranians, and in another file I had a tiddler with a link to [[Pomeranians]],

1. Is there a way to open TiddlyWikis in node.js when I have created them the 'stand-alone- way? Or does node.js only open tiddlers created in node.js?

2. If I use 'export all tiddlers as statics' in node.js for each of these multiple TiddlyWikis, and I upload all the statics to my web server to the same folder, will the link to [[Pomeranians]] direct me to the static tiddler Pomeranians from the other file?

In other words, could I create a giant, interlocking online wiki of static htmls by using node.js to export all tiddlers from a bunch of standalone TiddlyWikis and saving them all to the same online folder?

Just a thought.

Dave

David Gifford

unread,
Oct 9, 2019, 10:16:35 PM10/9/19
to TiddlyWiki
I think I answered my second question myself: each TiddlyWiki you create in node.js gets saved in a different folder, so the links will not refer to each other since the links in the tiddlers from folder A will only look for other tiddlers in folder A. Correct?

TonyM

unread,
Oct 9, 2019, 11:21:23 PM10/9/19
to TiddlyWiki
David,

Related observations
  • The Node Server out of the box already presents separate static tiddlers at matching addresses yourdomainorip/#tiddlername opens the wiki at that tiddler and yourdomainorip/tiddlername opens a static version that links to other static versions. A template is used to generate these pages so you could modify how they are presented. I believe there is also a method to generate these static tiddlers from the command line in a batch.
  • Tiddlywiki.com also publishes every tiddler as a static tiddler eg
Regards
Tony

David Gifford

unread,
Oct 9, 2019, 11:26:20 PM10/9/19
to TiddlyWiki
Thanks Tony

Yeah, I was aware of the batch export and the tiddlywiki.com/static. I will look at the Node Server idea...

TonyM

unread,
Oct 10, 2019, 12:02:40 AM10/10/19
to TiddlyWiki
No worries,

I am keen to publish static tiddlers that link to the main wiki so that the static tiddlers are out there and found by search engines, but on a click the main wiki loads, hence my exploration. Do share back.

Regards
Tony
Reply all
Reply to author
Forward
0 new messages