I’m creating a “wrapper” template that outputs some field values and the main text of a tiddler. A very simplified example would look like this:
!! {{!!title}}
!!! {{!!contextDescription}}
<section class="my-section"><$transclude /></section>
Transcluding other tiddlers with the template works fine, but when opening the template tiddler itself, I get the red “Recursive Transclusion” error message. I know why it appears and I’m not bothered by it. But I read in [tw5] Query -- How Fatal is the Red message "Recursive transclusion error in transclude widget" that the error can affect performance. What’s the best (i.e. most performant) way to deal with this error?
- Just ignore it?
- Wrap the transclusion in a list expression that checks if currentTiddler!=templateName?
- Add a special tag that tells TiddlyWiki to avoid transclusion?
- Make it a system tiddler to hide it as much as possible?