diff --git a/js/Recipe.js b/js/Recipe.js index 91ea744b8..54d2865d1 100755 --- a/js/Recipe.js +++ b/js/Recipe.js @@ -359,6 +359,7 @@ Recipe.tiddlerOutputMapper = { shadow: "shadow", title: "title", jsmodule: "jsmodule", + pluginmodule: "pluginmodule", base64ie: "base64ie" }; @@ -423,6 +424,18 @@ Recipe.tiddlerOutputter = { out.push(""); } }, + pluginmodule: function(out,tiddlers) { + // plugin modules are output as a special script tag + for(var t=0; t"); + out.push("$tw.defineModule(\"" + title + "\",\"" + tid.module + "\",function(module,exports,require) {"); + out.push(tid.text); + out.push("});"); + out.push(""); + } + }, base64ie: function(out,tiddlers) { // For IE, we output binary tiddlers in MHTML format (http://www.phpied.com/mhtml-when-you-need-data-uris-in-ie7-and-under/) if(tiddlers.length) {