API:Expanding templates and rendering/de