On Tue, 31 Jan 2012, Jeremy Ruston wrote:

At the moment, the wikification engine doesn't try to determine
whether a link is internal or external right until it is rendered,
when the function WikiStore.adjustClassesForLink assigns classes to
the link according to whether the target exists as the title of a
tiddler. It is done this way so that if a link needs to be updated
because a target tiddler has changed its status, it becomes possible
to just rerender the link, rather than having to reparse the tiddler
too.

That makes sense.

The gravy train version of dependencies, for my use case, would be
something like this: A dictionary with keys representing types of
links and values that are the links themselves. The types would be
things like:

1 link to tiddler no text required
2 link to tiddler requiring text
3 url

I recognize this may be a bit outside the immediate remit, but if
you're still fleshing it out, there are some ideas.

What's the distinction between types 1 and 2? Links in TW5 are coded
as macros, and macros have been extended so that they can have
children. Thus, the link macro can contain arbitrary content, not just
text.

The distinction is a way of saying: do I just need the metadata of
the tiddler to carry on with the render or do I also need its text
field.

For example if the tiddler being rendered does a <<tiddler>> macro,
then it needs the text of that tiddler.

However if there is just some kind of <<list>> macro, then you
wouldn't need text, you'd just need titles and a bit of meta.

It's essentially a premature optimization gesture on my part: Can I
avoid getting fat tiddlers?

As it turns out the code I have rolling now get tiddlers
individually (not en-masse) so it may not be an issue.

That commit coming in a moment on the wikify branch of my fork of
cook.js.
--
Chris Dent                                   http://burningchrome.com/
                                [...]

--
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywikidev?hl=en.

Reply via email to