I personally like my templates short and sweet and a loop like this seem clear enough. I agree we might want to retain control over the order of the buttons and we don't have a need to add the title and icon to the API. I'll give it another functional review to check the followup.