Documenting Tiddlywiki - Trying to clarify startup and object tree

64 views
Skip to first unread message

Luis Gonzalez

unread,
Jan 9, 2020, 5:36:03 AM1/9/20
to tiddly...@googlegroups.com
I keep analyzing Tiddlywiki. This work is very hard to me and it takes me a lot of time. This could be accelerated if someone helped me.


This time I analyze the startup of TW. First the browser load bootprefix.js and boot.js. Then, under the Tiddlywiki control, it loads all tiddler whose module-type is "startup". This is a little diagram:



My questions: 
  • Is this correct?
  • The modules under Tiddlywiki control (the $/core/modules... tiddlers) run in a certain order or they can run in any order?
  • Is this order fixed in boot.js or where?

PMario

unread,
Jan 9, 2020, 6:11:55 AM1/9/20
to TiddlyWikiDev

PMario

unread,
Jan 9, 2020, 6:23:04 AM1/9/20
to TiddlyWikiDev

On Thursday, January 9, 2020 at 11:36:03 AM UTC+1, Luis Gonzalez wrote:
I keep analyzing Tiddlywiki. This work is very hard to me and it takes me a lot of time. This could be accelerated if someone helped me.


This time I analyze the startup of TW. First the browser load bootprefix.js and boot.js. Then, under the Tiddlywiki control, it loads all tiddler whose module-type is "startup". This is a little diagram:

...
My questions: 
  • Is this correct?
The order is mainly dynamic
  • The modules under Tiddlywiki control (the $/core/modules... tiddlers) run in a certain order or they can run in any order?
modules can have an export.before = [xxx] and export.after=[yyy] setting. see: $:/core/modules/startup/rootwidget.js
  • Is this order fixed in boot.js or where?
It's dynamic. Almost everything in TWs module system is dynamic.

Also have a closer look at my first post.

There has been a hangout, where Jeremy explained the startup process. .. Link will follow :)
-m

PMario

unread,
Jan 9, 2020, 6:42:37 AM1/9/20
to TiddlyWikiDev
Hi,

It was hangout 10 ... Even if it is a long one, it's worth it. Especially if you watch Jeremy and the code editor, you'll get a good overview, what's going on. .. I did learn a lot ..


If you click the SHOW MORE button, you'll have access to the annotations.

The "old" TW which created a searchable index was on tiddlyspace. ... I'll upload it to tiddlyspot so we will have access again.

have fun!
mario

Luis Gonzalez

unread,
Jan 9, 2020, 6:53:07 AM1/9/20
to TiddlyWikiDev
Thank you!! This help me a lot.
I will read carefully the Tiddlywiki/Dev.


So this is the diagram:



Reply all
Reply to author
Forward
0 new messages