title: PHP template engine - single class
body: <p>I need very basic template engine, which is incapsulated in single class. So I would be able to easily inherit my classes from it.</p>
  
  <p>All needed functionality is "for" loops, if/else, and variables placement. Even including another templates is not required.</p>
  
  <p>It also must support caching for performance.</p>
  
  <p>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.</p>