Loading a plugin in the browser has several consequences:
To make a modified copy of a plugin, one edits the constituent shadow tiddlers (doing this actually overrides the shadow tiddler with a new non-shadow tiddler containing the modified content). The repacking process retrieves the current value of all the shadow tiddlers included in the plugin, and then bundles the new values back into the original plugin tiddler.
Click the link to the plugin tiddler to open it. Assuming it doesn't currently exist, it will open with an italicised title, indicating that it is a missing tiddler. Then switch to edit mode and set the following fields on the tiddler:
|dependents||Space separated list of dependent plugins (use square brackets for titles containing spaces)|
|name||Plugin name (only needed for themes)|
|plugin-type||Either "plugin" for a regular plugin, "theme" for a theme, or "language" for a language pack|
|type||Set to "application/json"|
|version||Set to the version number of the plugin (eg "0.0.1")|
Then in the body of the tiddler, insert:
Save the plugin tiddler
Create the payload tiddlers by clicking on the links in the HelloThere tiddler from step 1.
You should see a confirmation message, and then if you inspect the plugin tiddler you should see that it has been filled with the payload tiddlers.
Each time you save the plugin the last portion of the version number is automatically incremented. This will ensure that users with an older version of your plugin will be able to install the new version.
To test the plugin, first make sure that it has been packed. Then save changes and refresh the page in order to load the new plugin.
Once you've built the plugin for the first time you can omit the second parameter to
repackPlugin() unless you are adding a new tiddler:
To remove tiddlers from the plugin specify their titles in the optional third parameter:
Before attempting to repack your plugin you should ensure that the plugin is selected as the current theme or language. Otherwise the shadow tiddlers will not be present.