diff --git a/core/boot.js b/core/boot.js index 740e810af..a7d918861 100644 --- a/core/boot.js +++ b/core/boot.js @@ -377,12 +377,13 @@ $tw.Wiki.prototype.installPlugins = function() { // Save the plugin information var pluginInfo = this.plugins[title] = JSON.parse(tiddler.fields.text); // Extract the constituent tiddlers - for(var t=0; t=5.0.0", + "tiddlers": { + "Test1": {"text": "Some text"}, + "Test2": {"text": "Some more text"}, + "Test3": {"text": "console.log(require('$:/plugins/tiddlywiki/test/Test4').string);", "type": "application/javascript", "module-type": "custom"}, + "Test4": {"text": "exports.string = 'Plugin I am in You!';", "type": "application/javascript", "module-type": "custom"} + } } diff --git a/tw5.com/tiddlers/mechanisms/PluginMechanism.tid b/tw5.com/tiddlers/mechanisms/PluginMechanism.tid index 77db3d09a..77868c3fe 100644 --- a/tw5.com/tiddlers/mechanisms/PluginMechanism.tid +++ b/tw5.com/tiddlers/mechanisms/PluginMechanism.tid @@ -17,14 +17,12 @@ The JSON structure for plugin tiddlers is as follows: {{{ { - "metadata": { - "title": "$:/plugins/publisher/name", - "description": "An exemplary plugin for demonstration purposes", - "author": "JeremyRuston", - "version": "1.2.3-alpha3", - "coreVersion": ">=5.0.0", - "source": "http://tiddlywiki.com/MyPlugin" - }, + "title": "$:/plugins/publisher/name", + "description": "An exemplary plugin for demonstration purposes", + "author": "JeremyRuston", + "version": "1.2.3-alpha3", + "coreVersion": ">=5.0.0", + "source": "http://tiddlywiki.com/MyPlugin", "tiddlers": { "title1": {"type": "image/png", "text": ""}, "title2": {"text": "Text"}