嵌套调用 TW 的宏

2020年06月02日 21:35
Ref:
Keywords:

https://bimlas.gitlab.io/tw5-locator/ 给出的调用方法是 <<locator-view "Ford family">> 这样,有一个匿名参数。

我希望把 <<currentTiddler>> 宏作为其参数,但是根据调用宏的文档,不能直接写 <<locator-view <<currentTiddler>> >>

所以我只好去看 tw5-locator 的源码,在 $:/plugins/bimlas/locator/view 里看到发现原来这个匿名参数的定义是 \define locator-view(baseTitle finalFilter="") 中的 baseTitle

所以我最后是这样调用的:

<$macrocall $name="locator-view" baseTitle=<<currentTiddler>> />