{{if type === "option"}} {{> label}} {{else type == optgroup"}} {{for array tmpl="bdf:selectoption"/}} {{/if}}