Lightweight template system

Posted 2011-05-07

It's small template system I wrote. It features:

  • usable conditional statements
  • usable loop blocks
  • usable include statement
  • minifies inline styles (if $compress is true)
  • minifies inline javascript (if $compress is true and jsmin.php is included)

Each tamplate has it's own set of variables. rTemplates is very easy to use (samples are included in the archive) and released under LGPL version 3. You can download it here. JSMin.php is included but is not required to run the script.