add basic template rendering