<% // determine columns and chunk rows const cols = Object.keys(buttons); const numCols = Math.max(1, cols.length); %>
<% cols.forEach(col => { %>

<%= col %>

<% buttons[col].forEach((cell) => { const ctx = cell.context || {}; %> <% }); %>
<% }); %>