On Sunday, January 13, 2019 at 10:47:30 AM UTC-8, Jeff Wilson wrote:
>
> What's an example of a global toddler? The macro documentation mentions 
> this, but does not define it. 
>

Normally, macro definitions are only available for use within the tiddler 
in which they are defined.  To make those macro definitions available for 
use in other tiddlers, you can add a tag, "$:/tags/Macro" to the tiddler 
containing the definition.  This is what is meant by a "global tiddler".

Internally, this is accomplished by this line within the standard 
$:/core/ui/PageTemplate:
\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!
has[draft.of]]
which automatically loads any macros defined in the $:/core/ui/PageMacros 
system tiddler, as well as any tiddlers tagged with $:/tags/Macro

enjoy,
-e






-- 
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/ac38d870-d63e-42be-a9ef-a5edb392d47f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to