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?
   2. I think I have also heard from Jeremy that template trasclusions are 
   faster that macro call! Is this true?



On Sunday, September 29, 2019 at 10:36:55 AM UTC+3:30 Mohammad wrote:

> I want to transclude a tiddler or different part of tiddler! I normally 
> use template
>
> So, for example
> I want to show the content of a tiddler say myTiddler I use template-code 
> tiddler as below
>
> {{myTiddler||$:/utility/template-code}}
>
>
> I can also wrap the content of $:/utility/template-code in a macro like 
> tp-code and have 
> the same functionality as below
>
> <<tp-code myTiddler>>
>
>
> Pros and cons
>
> - writing the long name template is tedious in daily work
> - using smaller name like tpcode makes it appear everywhere
> - using macro is simple and its tiddler is hidden but semantically 
> template is better
>
>
> What do you think? and what do you propose
>
> --Mohammad
>
>
>

-- 
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/bf12e99b-13ca-4d3a-8740-d9b4a015eef9n%40googlegroups.com.

Reply via email to