I’ve got a Kirbytag that overrides the default file tag with my own version. This tag calls a snippet that I’ve built.
However, I’ve noticed that when this tag uses the snippet, the snippet itself is placed at the very beginning of the Kirbytext DOM rather than where it belongs in the output.
For example, if my Kirbytext is thusly:
Lorem
(file: filename.pdf)
Ipsum
The actual output would be something like this:
SNIPPET HERE
<p>Lorem</p>
<p>Ipsum</p>
This only happens when the tag uses a snippet. If I copy the code from my snippet and use it as the return string in site/tags/file.php, it is properly located in the output.