Change template engine, rewrite template files