On Monday, March 19, 2018 at 11:36:30 AM UTC+1, Joe Armstrong wrote:
>
>
> Now there are 10 quadzilion template languages that can do this.
> For example in django I might write
>
> {% if has_tag("foo") %}
>    <h1>hello I'm a foo</h1>
>    ...
> {% else %}
>    <h1>hello<>h1>
> {% endif %}
>


This can be done by using the list-widget

<ul>
<$list filter="[tag[foo]]" variable="you-name-it" emptyMessage="no tiddler 
tagged foo">
   <li>hello I'm a foo - <<you-name-it>></li>
</$list><$list filter="[!tag[foo]]">
   <li>hello I'm NOT tagged foo - <<currentTiddler>></li>
</$list>
<ul>

Just one possibility. ... There may be others. 

-mario




-- 
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/b263cffc-02ca-4d6b-8fdd-f84e5db6bb76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to