On Tuesday, June 1, 2021 at 3:45:41 PM UTC+2 Mohammad wrote:
> Bringing up this again: * Transclusion: macro or template*
>
> 1. Can I say, I should use template when I am going to use many fields
> like {{!!title}} or I use currentTiddler in my template?
>
> Not as a general rule. ... You can also use the "currentTiddler" variable
in a macro and call it within different tiddler. eg: test this:
title: test-macro
tags: $:/tags/Macro
\define test() <<currentTiddler>>
title: a
<<test>>
title: b
<<test>>
> 1. I think I have also heard from Jeremy that template trasclusions
> are faster that macro call! Is this true?
>
> Partially yes.
But ... Since TW 5.1.23 that is only true if your macro uses text
substitution eg: \define a(txt) $txt$ or $(someVariable)$
Where this really matters is for macros, that call themself. ... aka
"recursive macro calls" as used in the TOC or tree-macro
-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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/a3a22fa8-3c7f-4e8f-bcb9-0e3a6218de73n%40googlegroups.com.