I need very basic template engine, which is incapsulated in single class. So I would be able to easily inherit my classes from it.
All needed functionality is "for" loops, if/else, and variables placement. Even including another templates is not required.
It also must support caching for performance.
All widely-known template engines are large and not contained in single class. And there is way too many small template engines to quickly find what I am searching for.
I have looked into all engines given in answers. Templum was closest one, but not really the one I've looked for.
After some more searching I have found RainTPL, exactly the thing I have asked for.
Sadly, I will have to accept my own answer.