Thank you both for your suggestions!
In this case I was confusingly looking for matching the reveal widget
against a variable, Eric's solution works perfectly.
Erwan
On 25/10/15 12:03, Eric Shulman wrote:
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]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[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
<https://groups.google.com/d/msgid/tiddlywiki/02a634f8-29e7-404b-b056-0b9edd828cb5%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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/562CE8AB.3050202%40gmail.com.
For more options, visit https://groups.google.com/d/optout.