# [tw5] What's wrong with this macro?

I wanted to make a macro to quickly insert a table of contents of all the
descendents of a given tiddler.
This is what I wrote:


\define toc-sel()

<div class="tc-table-of-contents">
<<toc-selective-expandable $(currentTiddler)$>>
</div>

\end

However when I use it in a tiddler (<<toc-sel>>), it gives me:

What am I doing wrong?

--
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 post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.

• [tw5] What's wrong with this macro? Luca Dorigo