added template engine to context.