Hi Mat,
you're not quite right. Take a look here:
http://tiddlywiki.com/dev/#Timeline%20of%20the%20startup%20Process
When TW starts up, it at some point loads all the tiddlers it can find
into whats called the tiddler store in memory. Now those also include
the plugin tiddlers, e.g. '$:/core'.
Afterwards, there is another step, where TW "unpacks" the plugins and
their contents are written into the shadow tiddler store, which is a
separate location in memory, where TW stores them as actual tiddlers.
So yes, "the store" for shadow tiddlers is in memory, just like for
ordinary tiddlers and the aforementioned redirection is on the lowest
level of accessing a tiddler by its title, which makes reading from that
tiddler behave exactly like for any other tiddler.
{{Note: While typing this, I noticed that there was potential for
confusion: What I refer to as the "tiddler store" in the text above is
the place where TW keeps the tiddlers of a wiki _after_ booting up, in
working memory. The "tiddler store" that you spoke of below refers to
the section of the HTML code of a saved TW, where the _saved_ tiddlers
are stored and from where they will be read into working memory, when
the TW boots. And as you noticed, the shadow tiddlers are contained
within the plugin tiddlers in the saved section and are only unpacked at
boot time into the separate shadow tiddler store located in "working
memory". The link above shows a timeline of this process.}}
/Andreas
Am 01.06.2017 um 02:06 schrieb Mat:
Thanks Andreas!
- Shadow tiddlers exist separately from normal tiddlers and are
therefore effectively marked as "originating from a plugin"
The thing is, I don't find them in the source in any other place than
inside the plugin.
- When you click on a title in a plugins content list, what you
see as the tiddler that pops up, is TW internally redirecting to
the separate shadow tiddler store to determine the contents of the
shadow tiddler.
"redirect to the shadow tiddler store" - ...where would this be? Is
"the store" not the plugin? Surely, it can't be in memory, right?
I could imagine that what was presented as a shadow tid was really
something like a /transclusion/ presenting the JSON fields from the
plugin via a template... but if this was the case then I think we'd
have generally more powerful JSON features...
Again, thanks for your input.
<:-)
--
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywikidev/4be32c1f-3080-a576-f831-a950466bc8b1%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.