New Plugin Mechanism for TiddlyWiki5

371 views
Skip to first unread message

Jeremy Ruston

unread,
Apr 30, 2012, 7:32:59 AM4/30/12
to TiddlyWikiDev
As I mentioned in a thread over the weekend [1], I've been engaged in
a relatively major refactoring of the TiddlyWiki5 code to bring in a
new plugin module mechanism. It's a more sophisticated version of the
systemConfig mechanism in classic TiddlyWiki.

It's turned out that I could implement something that has been
discussed a few times here in the group: the idea of a TiddlyWiki
micro-kernel that is as small as possible, and dynamically loads
everything else as plugins. The new challenge is to have it working
properly in the browser and on the server under node.js.

You can see the results at http://tiddlywiki.com/tiddlywiki5, or
inspect the code at:

https://github.com/Jermolene/TiddlyWiki5/tree/master/rabbithole

(Be sure to scroll down to the readme file).

The end result is that plugins will become bundles of related
tiddlers, that can incorporate code, translations and other resources.
Users will be able to manage plugins as a unit, and soon be able to
download them from a central repository on tiddlywiki.com.

The goal for plugin writers is to make it much simpler to create
plugins, without so much of the brittle overriding that characterises
plugins in classic TiddlyWiki. For sophisticated users, the plugin
mechanism will make it possible to perform deep customisation of the
TiddlyWiki app.

Please fire any questions, raise tickets, or use GitHub to apply
comments and questions to the code.

Best wishes

Jeremy


[1] https://groups.google.com/d/msg/tiddlywikidev/7Q07wDOeNIk/KucLG_oSEusJ

--
Jeremy Ruston
mailto:jeremy...@gmail.com

PMario

unread,
Apr 30, 2012, 6:31:02 PM4/30/12
to TiddlyWikiDev
On Apr 30, 1:32 pm, Jeremy Ruston <jeremy.rus...@gmail.com> wrote:
> You can see the results athttp://tiddlywiki.com/tiddlywiki5, or
nice work :)
The code looks promising.

A hello world macro example would be nice too :)
-m

Jeremy Ruston

unread,
May 2, 2012, 4:02:52 AM5/2/12
to tiddly...@googlegroups.com
>> You can see the results athttp://tiddlywiki.com/tiddlywiki5, or
>> inspect the code at:
>>
>> https://github.com/Jermolene/TiddlyWiki5/tree/master/rabbithole
> nice work :)
> The code looks promising.
>
> A hello world macro example would be nice too :)

My plan is to create a separate GitHub repo containing starter
boilerplate for a plugin, enabling people to just clone the repo to
get started on a plugin of their own. People who aren't using GitHub
would still be able to inspect the boilerplate plugin within
TiddlyWiki itself, of course.

Best wishes

Jeremy
Reply all
Reply to author
Forward
0 new messages