Explain the template engine.