You have to remove the className
and tagName
from CompositeView
and update the composite template as follows
<div><a href="#logout">Click to logout</a></div> // Now i am out.
<table class="table-striped table-bordered">
<thead>
<tr class='header'><th>Name</th></tr>
</thead>
<tbody></tbody>
</table>
Moreover you do not need to have appendHtml
in the CompositeView. Instead simple set itemViewContainer: "tbody"
in which item view will be appended.
Please check out http://jsfiddle.net/fizerkhan/y6nH5/