<div class="btn-toolbar" role="toolbar" aria-label="">
    <f:for each="{buttons}" as="buttonGroup">
        <f:if condition="{buttonGroup -> f:count()} > 1">
            <f:then>
                <div class="btn-group" role="group" aria-label="">
                    <f:for each="{buttonGroup}" as="button">
                        {button -> f:format.raw()}
                    </f:for>
                </div>
            </f:then>
            <f:else>
                {buttonGroup.0 -> f:format.raw()}
            </f:else>
        </f:if>
    </f:for>
</div>
