Write a simple template engine for PHP