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