simple PHP Templating class (basically a glorified regexp)