diff --git a/core/templates/external-js/save-all-external-js.tid b/core/templates/external-js/save-all-external-js.tid new file mode 100644 index 000000000..31476e663 --- /dev/null +++ b/core/templates/external-js/save-all-external-js.tid @@ -0,0 +1,6 @@ +title: $:/core/save/all-external-js + +\define saveTiddlerFilter() +[is[tiddler]] -[prefix[$:/state/popup/]] -[[$:/HistoryList]] -[[$:/core]] -[[$:/boot/boot.css]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] +[sort[title]] $(publishFilter)$ +\end +{{$:/core/templates/tiddlywiki5-external-js.html}} diff --git a/core/templates/external-js/tiddlywiki.js.tid b/core/templates/external-js/tiddlywiki.js.tid new file mode 100644 index 000000000..a8170663f --- /dev/null +++ b/core/templates/external-js/tiddlywiki.js.tid @@ -0,0 +1,15 @@ +title: $:/core/templates/tiddlywiki5.js + +\rules only filteredtranscludeinline transcludeinline codeinline + +/* +{{ $:/core/copyright.txt ||$:/core/templates/plain-text-tiddler}} +`*/ +` +{{{ [is[system]type[application/javascript]library[yes]] ||$:/core/templates/plain-text-tiddler}}} + +{{ $:/boot/bootprefix.js ||$:/core/templates/plain-text-tiddler}} + +{{$:/core/templates/tiddlywiki5.js/tiddlers}} + +{{ $:/boot/boot.js ||$:/core/templates/plain-text-tiddler}} diff --git a/core/templates/external-js/tiddlywiki.js.tiddlers.tid b/core/templates/external-js/tiddlywiki.js.tiddlers.tid new file mode 100644 index 000000000..52b2c293f --- /dev/null +++ b/core/templates/external-js/tiddlywiki.js.tiddlers.tid @@ -0,0 +1,9 @@ +title: $:/core/templates/tiddlywiki5.js/tiddlers + +` +$tw.preloadTiddlerArray(`<$text text=<>/>`); +$tw.preloadTiddlerArray([{ + title: "$:/config/SaveWikiButton/Template", + text: "$:/core/save/all-external-js" +}]); +` diff --git a/core/templates/external-js/tiddlywiki5-external-js.html.tid b/core/templates/external-js/tiddlywiki5-external-js.html.tid new file mode 100644 index 000000000..91e423edc --- /dev/null +++ b/core/templates/external-js/tiddlywiki5-external-js.html.tid @@ -0,0 +1,41 @@ +title: $:/core/templates/tiddlywiki5-external-js.html + +\rules only filteredtranscludeinline transcludeinline + +{{$:/core/templates/MOTW.html}} + + + + + + + + + + + + + +{{$:/core/wiki/title}} + + + +{{{ [all[shadows+tiddlers]tag[$:/core/wiki/rawmarkup]] [all[shadows+tiddlers]tag[$:/tags/RawMarkup]] ||$:/core/templates/plain-text-tiddler}}} +{{{ [all[shadows+tiddlers]tag[$:/tags/RawMarkupWikified]] ||$:/core/templates/raw-static-tiddler}}} + + + +
+{{$:/boot/boot.css||$:/core/templates/css-tiddler}} +
+ + + +{{$:/core/templates/store.area.template.html}} + + + diff --git a/editions/tw5.com/tiddlywiki.info b/editions/tw5.com/tiddlywiki.info index a845845d3..aa3cd5707 100644 --- a/editions/tw5.com/tiddlywiki.info +++ b/editions/tw5.com/tiddlywiki.info @@ -48,7 +48,10 @@ "--rendertiddler","$:/core/templates/static.template.html","static.html","text/plain", "--rendertiddler","$:/core/templates/alltiddlers.template.html","alltiddlers.html","text/plain", "--rendertiddlers","[!is[system]]","$:/core/templates/static.tiddler.html","static","text/plain", - "--rendertiddler","$:/core/templates/static.template.css","static/static.css","text/plain"] + "--rendertiddler","$:/core/templates/static.template.css","static/static.css","text/plain"], + "external-js": [ + "--rendertiddler","$:/core/save/all-external-js","index.html","text/plain", + "--rendertiddler","$:/core/templates/tiddlywiki5.js","tiddlywiki.js","text/plain"] }, "config": { "retain-original-tiddler-path": true