Is there any way to rewrite the following any more elegantly?
\define d()
$:/temp/$(currentTiddler)$!!$(a)$
\end
\define toggle-body(a,b,c)
<$set name="a" value="""$a$""">
<$set name="b" value="""$b$""">
<$set name="c" value="""$c$""">
<$reveal type="match" state=<<d>> text="">
<$button set=<<d>> setTo=<<b>> class="tc-btn-invisible">
<$transclude tiddler=<<a>> />
</$button>
</$reveal>
<$reveal type="nomatch" state=<<d>> text="">
<$button set=<<d>> setTo={{$c$!!target}} class="tc-btn-invisible">
<$transclude tiddler=<<c>> />
</$button>
</$reveal>
</$set>
</$set>
</$set>
\end
\define toggle(a)
<$macrocall $name="toggle-body" a=$a$ b={{$a$!!target}}
c={{$:/temp/$(currentTiddler)$!!$a$}}/>
\end
--
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/0bc5ee6d-4c48-467f-a801-112aa403a071%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.