We now have a candidate implementation of TiddlyWiki that contains jQuery. This is available in the tip revision of TiddlyWiki in subversion. The implementation is a fairly minimal change of TiddlyWiki:
i) we've added the jQuery library code into a script tag in the head of the TiddlyWiki file. This makes jQuery available to plugin writers ii) we've extended the macro handling to allow jQuery object methods to be used as macros. To be used as a macro a jQuery object function needs to be prefixed with "tw_", this is to avoid name clashes with existing object functions. As an example the <<today>> macro is implemented as a TiddlyWiki object function at: http://svn.tiddlywiki.org/Trunk/core/jquery/plugins/jquery.tw.macro.today.js Arguments to macros are passed as named values, and by position if there is no named value. So <<today format:"YYYY">> would set args.format to "YYYY" whereas <<today "YYYY">> would set args[1] to "YYYY" Any comments are welcome Martin --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
