<div class="tablesheet-Viewport">
<table id="{{: generatedId}}" class="tablesorter tablesheet-Table">
    <col span="{{> meta.columns.length}}" class="tablesheet-Column">
<thead class="tablesheet-THead">
    <tr>
{{if withKeyHeader}}
    {{for meta.columns}}
        <th title="{{> title}}">{{: name}}</th>
    {{/for}}
{{else}}
    {{for meta.columns}}
        <th>{{> title}}</th>
    {{/for}}
{{/if}}
    </tr>
</thead>
{{if sum}}
<tfoot>
    <tr>
    {{for sum}} 
        <td class="tablesheet-Number">
        {{if integer}}
            {{: integer}}
        {{else decimal}}
            {{: decimal}}
        {{else moneyArray}}
            {{for moneyArray}}
                {{if #index > 0}}<br>{{/if}}
                {{> text}}
            {{/for}}
        {{/if}}
        </td>
    {{/for}}
    </tr>
</tfoot>
{{/if}}
<tbody>
{{for rows}}
    <tr data-id="{{: id}}" data-editable="{{: editable}}">
    {{for cells tmpl="bdf:cell"/}}
    </tr>
{{/for}}
</tbody>
</table>
</div>
