title: If statements in template system
body: <p>How can I parse, let's say, <code>{if $var &gt; 2}</code> or <code>{if $var}</code> in a .tpl file in my own version of a templating class. I do not wanna use smarty as I don't need all their plugins. I just want include, if, for and <code>foreach</code> statements.</p>