             </tr>
         <% } %>
     """
+    columnsTemplate: _.template """
+        <% _.each(model, function (col, key) { %>
+            <th abbr="<%= key || col %>"
+             class="<%= !col.nosort && "sorting" %> <%= ((key || col) == data.sort_col) && "sorting_" + data.sort_dir %> <%= col.className || "" %>">
+                <%= col.header || col %>
+            </th>
+        <% }) %>
+    """
     template: _.template """
         <div class="row-fluid">
             <div class="span2">

    # and trigger an update of the collection
    render: =>
        @$el.html @template
            columns:    @columns
            empty:      @empty or ""
            title:      @applyTemplate @titleTemplate,      @title
            search:     @applyTemplate @searchTemplate,     @search
            pagination: @applyTemplate @paginationTemplate, @pagination

        @filters = _.map(@filters, (filter, name) => @createFilter(name, filter))

        <table class="table table-striped table-bordered">
            <thead>
                <tr>
                    <%= columns %>
                </tr>
            </thead>
            <tbody>
