Subject: [tw] Re: TW5 So lost i need a map.

Thanks for the info everyone.

Now that i understand it better, i'm using these almost like constants.
rather than having each macro have to determine what the data tiddler, and state tiddler is i define them once via the macros.
and i am finding that being able to reference the values inside other macros as $(macro)$ is sometimes more flexible than <<macro>>.

I'm learning that 99% of my troubles come from being unable to use <<macro>> inside quotes and similar issues w/ tiddler titles having spaces in them

On Thursday, August 10, 2017 at 11:28:49 AM UTC-5, Mark S. wrote:When you use the $(variable)$ construction inside a macro, it substitutes the text literally, without rendering.

So when the #*#@&* DO things render? And how do you control it? This is the kind of thing that can make you bang your head against the wall for hours.

Fortunately, we now have the <$wikify> widget. The <$wikify> widget renders the text it is given, allowing a more sane programming flow. So your code can now be written:

\define myStateTid() """$:/state/$(currentTiddler)$"""

\define buttontest2()
<$wikify name=hawaii text=<<myStateTid>>>
  <$button set=<<hawaii>> setTo="edit">Press2</$button></$wikify>



On Thursday, August 10, 2017 at 7:15:50 AM UTC-7, myst...@xxxxxxxxx wrote:I thought i had finally wrapped my head around the difference between $var$ and $(var)$, so i went to test it.
Below is my test, and I am at a complete loss for why buttontest1 renders the markup instead of the button, and why buttontest2, when pressed, creates a tiddler that is the exact markup of <<myStateTid>>.
While calling <<myStateTid>> by itself renders as expected.

Please, someone explain this to me.. perhaps using small words. :)...

\define myStateTid() """$:/state/$(currentTiddler)$"""

\define buttontest1()
    <$button set="$(myStateTid)$" setTo="edit">Press1</$button>

\define buttontest2()
    <$button set=<<myStateTid>> setTo="edit">Press2</$button>


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
To view this discussion on the web visit
For more options, visit

Programming list archiving by: Enterprise Git Hosting