php + html mixed template engine