Amazing Eric!

How keep this simple and add the expandable behavior on node with child 
branches?

On Wednesday, January 22, 2020 at 4:29:30 PM UTC+3:30, Eric Shulman wrote:
>
> Here's a very simple recursive "tree walk" that shows the entire 
> TableOfContents tree:
>
> \define toc-all(here,exclude)
> <$list filter="""[title[$here$]tagging[]] $exclude$ -[[$here$]]""">
>    <$text text=<<currentTiddler>>/>
>    <div style="padding-left:2em;">
>        <$macrocall $name="toc-all" here=<<currentTiddler>> 
> exclude="""$exclude$ -[[$here$]]"""/>
>    </div>
> </$list>
> \end
>
> <<toc-all TableOfContents>>
>
> Note that it does NOT require multiple macros to do the recursion, and 
> uses the dynamically updated "exclude" param to avoid infinite loops.
>
> 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/62658362-58a1-4aad-8f37-37da669ae74f%40googlegroups.com.

Reply via email to