Assume you have a macro in a global tiddler e.g

Title: MyMacro
Tag: $:/tags/Macro


\define myMac() <<currentTiddler>>



Then in another tiddler you call the myMac macro as below

<$list filter="[tag[HelloThere]]">
<<myMac>><br>
</$list>


and testing on Tiddlywiki.com produces

A Gentle Guide to TiddlyWiki <https://tiddlywiki.com/prerelease/#TiddlyWiki>
Discover TiddlyWiki <https://tiddlywiki.com/prerelease/#TiddlyWiki>
Some of the things you can do with TiddlyWiki 
<https://tiddlywiki.com/prerelease/#TiddlyWiki>
Ten reasons to switch to TiddlyWiki 
<https://tiddlywiki.com/prerelease/#TiddlyWiki>
Examples
What happened to the original TiddlyWiki 
<https://tiddlywiki.com/prerelease/#TiddlyWiki>?

As we learned with the scope of variable and variable inside macro I expect 
the above syntax fails and the below syntax work

Title: MyMacro
Tag: $:/tags/Macro


\define myMac()  $(currentTiddler)$



As we know a variable from ouside macro should be referenced as $(varname)$.

So what is going on here?

--Mohammad

-- 
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/d19ebbd9-4d44-489c-b5ff-ac16aec09fea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to