I'm developing a few scripts and I would like to keep the html outside the code, that will be done with the help of a template engine. I know that Smarty is a good one, but I think about develope a simple one for my own use, what will be better? I had another question, someone knows a better why how could I make for example an If condition into the template file? (Without using REGEX) Thanks, Eran.
PHP+HTML is already a template engine. Do you want an "if" condition into the "template" file? <?php if ($condition === true) : ?> some html <?php else : ?> some other html <?php endif ?> PHP: Why re-inventing the wheel each time?!?