Just found this little gem from this article:
https://tqdev.com/2019-php-templating-engine-in-165-lines
So far I really like it but as far as I can see it is not possible to have conditions in the template without calling a dedicated functions which must be provided to the sandbox.
This seems to be impossible:
{{if:SOME_VARIABLE!="sometext")}} Some output {{endif}}
That makes it unpleasant to work with, because it is basic functionality you are probably used to from other engines like FatFreeFramework