Hello,

Here I am again confused about saving filters. This happens to me from time 
to time, more or less every time I have to deal with save filters: they're 
confusing, they're not very documented and they are very different and 
similar at the same time to each other.

My question today is about the difference between two filters, one is 
$:/core/save/empty 
and the other is $:/editions/tw5.com/download-empty. Below you can see the 
respective contents:


title: $:/core/save/empty

\define saveTiddlerFilter()
[is[system]] -[prefix[$:/state/popup/]] -[[$:/boot/boot.css]] -[type[
application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/
bootprefix.js]] +[sort[title]]
\end
{{$:/core/templates/tiddlywiki5.html}



title: $:/editions/tw5.com/download-empty
\define saveTiddlerFilter()
[[$:/core]] [[$:/isEncrypted]] [[$:/themes/tiddlywiki/snowwhite]] 
[[$:/themes/tiddlywiki/vanilla]] -[[$:/boot/boot.css]] 
-[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] 
-[[$:/boot/bootprefix.js]] +[sort[title]]
\end
\define savingEmpty()
yes
\end
{{$:/core/templates/tiddlywiki5.html}} 



>From the title, I understand that both are intended to generate an empty 
tiddlywiki, but that is all that I can understand. The first just takes 
care of including system tiddlers and removing the ones that are hardcoded 
at the template, while the second just includes core, a couple of temes and 
the same exclusions. What is the reason of this difference ?
I have also discovered (the hard way) that the second one (download empty) 
totally ignores the plugins defined at tiddlywiki.info. This made me think 
that the second is not suitable for nodejs wiki generation, and is only 
meant to be used when you download the wiki from the browser. I don't 
understand why are they so different, if someone could explain me it a bit 
more.

Also I don't understand the role of the savingEmpty macro. Why the first 
one does not include this macro if it is meant to generate an empty wiki ? 
What does that macro do exactly ?

Thanks in advance

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/07701c9d-301b-415a-929b-c59e5bb16cc4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to