This is just a note to those that have been following the recent refactoring work I've been doing on the widget mechanism in TW5. It's now got to the point where everything is done except folding in the animations, so it's a good time to review the work if you're interested.
You can see the changes on this pull request: https://github.com/Jermolene/TiddlyWiki5/pull/178 It's a big change: 160 changed files with 19,805 additions and 6,058 deletions. The order of the listings on the "Files Changed" tab is not a bad sequence for reviewing the changes. I have taken the opportunity to make the use of attribute names a bit more consistent. Various widgets used to use "tiddler" for the title of the tiddler that they operate on. Now I've switched to using "title" (I avoided "title" at first to prevent clashing with the HTML attribute, but now that widgets don't have to generate DOM nodes there is less possibility of a clash). There's still a few loose ends that I'd like to explore once these changes have been merged into the master: * Improving the implementation of qualifyTiddlerTitles. Rather than being a separate attribute that widgets must implement, I'm hoping to be able to use the macro mechanism (for example <$button title=<<qualify MyStateStore>>>). * Cleaning up the <$list> widget. It currently has some attributes that hack it's behaviour that need to be folded in more elegantly. * Mending the hacks that I put into the parsing mechanism to support the new widget mechanism (see the various tweak() functions in wiki.js) * Cleaning up the <$view> widget. We should be able to replace the format attribute with a macro invocation. Let me know if you have any questions - we'll also discuss these changes during tomorrow's hangout, Best wishes Jeremy -- Jeremy Ruston mailto:[email protected] -- 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 http://groups.google.com/group/tiddlywikidev. For more options, visit https://groups.google.com/groups/opt_out.
