In https://tiddlywiki.com/, there is a Download Empty
button, one can click and download a clean empty.html edition. It is here: https://tiddlywiki.com/prerelease/#Empty%20Edition
The button script is as below
<$button class="tc-btn-download">
<$action-sendmessage $message="tm-download-file" $param="$:/editions/tw5.com/download-empty" filename="empty.html"/>
Download Empty {{$:/core/images/save-button}}
</$button>
It uses a template ($:/editions/tw5.com/download-empty
) to do the job!
Question: I need to create an extra tiddler and append it to the list of tiddlers in $:/editions/tw5.com/download-empty
when click download empty!
- that extra tiddler shall not be remined in the host wiki (here
https://tiddlywiki.com
), so it shall be created on the fly - the dirty button (save button on the sidebar) shall not be changed to red
In other words, the extra tiddler shall be created in the process of downloading and appended to the empty.html