API:Expanding templates and rendering