inject templating service in controller for some special rendering cases