Jeremy, This sounds wonderful, and to achieve it you have introduced additional functionality. It looks like much of this below is possible already, I am just voicing my desires.
Your output continues to astound me. - I hope these can be used independently such as the zip method discussed here. - Other outputs such as Generating the files for a Library into a zip as well. - EPUB and other zipped exports as a smarter alternative to publishing I would hope a little guidance to allow the following would exist - Generate the zip and save it in the wiki for subsequent drag and drop - Generate a zip containing binary files - This could be away to distribute low size software to install say timimi local host in a wiki. - Clone or modify the output template and make minor changes - I am keen to export static where all the links refer to the actual wiki file - This would allow search SEO to find the HTML tiddlers but user interaction would load the full interactive wiki - I think this should be a static template made available already Could we build a little helper plugin to assist in these various uses of such a process? This would release the functionality to more users, sooner in their tiddlywiki learning. On Sunday, 3 May 2020 06:36:01 UTC+10, Jeremy Ruston wrote: > > A disadvantage for some users of TiddlyWiki’s static site generation > capabilities is the requirement to use Node.js. I’m therefore pleased to > announce an update to the JSZip plugin that makes it practical to render > medium sized static sites in the browser, without needing to use Node.js. > > > https://github.com/Jermolene/TiddlyWiki5/commit/6a0ff7db1807f45b73061ced82f5a85f1a529bbf > > The updated plugin adds a handful of messages that can be used in the > browser to: > > * create a blank ZIP file as a tiddler of type "application/zip” > * add text files to a ZIP tiddler > * download a ZIP tiddler as a .zip file > > To try it out, visit the prerelease and review the docs: > > https://tiddlywiki.com/prerelease/#%24%3A%2Fplugins%2Ftiddlywiki%2Fjszip > <https://tiddlywiki.com/prerelease/#$:/plugins/tiddlywiki/jszip> > > The complete code to save a static site looks like this: > > \define actions-render-static-site() > <$action-sendmessage $message="tm-zip-create" > $param="$:/temp/_ZipTiddler"/> > <$list filter="[all[tiddlers]!is[system]limit[100]]"> > <$action-sendmessage $message="tm-zip-render-file" > $param="$:/temp/_ZipTiddler" filename={{{ > [<currentTiddler>encodeuricomponent[]addsuffix[.html]] }}} > tiddler=<<currentTiddler>> > template="$:/core/templates/static.tiddler.html"/> > </$list> > <$action-sendmessage $message="tm-zip-render-file" > $param="$:/temp/_ZipTiddler" filename="static.css" > template="$:/core/templates/static.template.css"/> > <$action-sendmessage $message="tm-zip-download" > $param="$:/temp/_ZipTiddler" filename="myzip.zip"/> > \end > > <$button actions=<<actions-render-static-site>>> > Render site > </$button> > > > Performance is a bit sluggish with large zip files (>2MB on my desktop > machine) but otherwise it seems to work well. I’ve got an idea for > improving performance that I’ll work on if I have time. > > Questions and comments welcome. > > Best wishes > > Jeremy > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/ff69d19e-a706-4d0b-b714-e4c5462b1dc8%40googlegroups.com.