Basic plugin support for browser and server

Currently only supports plugins packed as a single JSON tiddler
This commit is contained in:
Jeremy Ruston
2012-08-31 12:34:39 +01:00
parent 4cebcddeeb
commit 88e7a4fb67
2 changed files with 28 additions and 15 deletions
+5 -2
View File
@@ -1,9 +1,12 @@
title: TemporaryTestPlugin
type: application/x-tiddlywiki-plugin
type: application/json
plugin: yes
{
"tiddlers": [
{"title": "Test1", "text": "Some text"},
{"title": "Test2", "type": "Some more text"}
{"title": "Test2", "text": "Some more text"},
{"title": "Test3", "text": "console.log(require('Test4').string);", "type": "application/javascript", "module-type": "custom"},
{"title": "Test4", "text": "exports.string = 'Plugin I am in You!';", "type": "application/javascript", "module-type": "custom"}
]
}