New template engine compiles templates correctly