\define download-xlsx-tiddler(title,caption) <a href={{{ [[data:application/vnd.openxmlformats-officedocument. spreadsheetml.sheet;base64,]addsuffix{$title$}] }}} download="$title$"> $caption$</a> \end
It's called like this: <<download-xlsx-tiddler "Presidents and Justices.xlsx" "Presidents and Justices.xlsx">> I see that it mentions the MIME type of the and the base64 format is also mentioned, but I don't think I really understand it. It looks like it's using transclusion and a filter, but I don't really understand the "data:" portion and where the documentation for that is...but it's really neat as it means you can store any sort of file in a Tiddlywiki 5 and download it with a link. Thanks! -- 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 post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/fd228600-8699-4bb0-96be-d09aa61086e6%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.