Continued rewriting template engine