Updated html/template example to auto-generate templates map.