Hi Eric,
> One more "code style" tip that I sometimes use in my own projects: instead
> of putting filters and $list contents "inline", it can help to separate the
> parts into named macros, and then use those macros in the $list widgets.
>
Thanks for the useful tip.
Another way to do this for a more narrowly defined scope would be to use
the vars widget, e.g:
<$vars
types = "[!has[draft.of]tag[tasktype]]"
tasks = "[!has[draft.of]tag[task]!tag[done]tag<currentTiddler>
sort[created]]"
link = """<$link to={{!!title}}><$view field="title"/></$link>"""
check = """<$checkbox tag="done"> <<link>></$checkbox><br>""">
<dl>
<$list filter=<<types>>>
<dt><<link>></dt>
<$list filter=<<tasks>>>
<dd><<check>></dd>
</$list>
</$list>
</dl>
</$vars>
Best wishes,
Tobias.
--
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/eb264bd3-35aa-401e-962d-a4ad5846db2e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.