Profiles - Introduce new APIs for template rendering inside CodeGen scripts