Put the template engine outside the core