Thanks Jed,

I was happy to use text/plain but every file I tried to export as say 
name.bat ended up being name.bat.html from firefox, I then took along 
journey to see if I could register other mime types (which I has abandoned)

I will try again, and hope I do not get lost in the links and transcludes 
again.

Best Wishes
Tony

On Saturday, July 14, 2018 at 7:40:57 PM UTC+10, Jed Carty wrote:
>
> You can already export tiddlers as plain text (rendered or not) to get 
> things like .cpp files or script files out of them using the exporter. For 
> a contract I did a while ago I made a wiki that would automatically 
> generate code and there were buttons to export the generated files so 
> people could make changes without having to know how to code. I have a 
> similar wiki now that documents and generates some components for robbie. 
> Once I finish testing I am probably going to make it public.
>
> The widget can export any type of file that is registered by the core to 
> be encoded in base64 when imported into a tiddlywiki. The list of files 
> registered this way is ['image/gif', 'image/x-icon', 'image/jpeg', 
> 'image/jpeg', 'image/png', 'image/svg+xml', 'application/pdf', 
> 'application/zip', 'application/font-woff', 'application/x-font-ttf', 
> 'audio/ogg', 'video/mp4', 'audio/mp3', 'audio/mp4'].
>
> I have only tested exporting images so far.
>
> You could make a button that exports a tiddler using the existing export 
> mechanism. Or you could have it export a list of them, but you would be 
> prompted to download them one at a time. You could probably make something 
> using the jszip plugin to download a zip file that contains everything to 
> get a single download. But that isn't really part of the downloadBinary 
> widget.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywikidev/cf356c27-b096-43f1-9cf2-352dc223c23b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to