On Sunday, October 25, 2015 at 3:51:22 AM UTC-7, Erwan wrote:
>
> ...so that the tiddler from which the template is called can select which
> version to display, for example by setting a variable:
>
> <$set name="showAll" value="no">
> {{||MyTemplate}}
> </$set>
>
You can use a variable to control which $reveal widgets are shown in
MyTemplate, like this:
<$reveal text=<<showAll>> type="nomatch" default="no">
...conditional content here...
</$reveal>
The above wiki syntax is equivalent to:
if (showAll != "no") {
... content ...
}
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 [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/02a634f8-29e7-404b-b056-0b9edd828cb5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.