I have the following template:
<div class="row">
<div></div>
....
</div>
and the following view:
var TestView = Backbone.View.extend({
tagName: "div",
template: $("#tests_template"),
initialize: function () {
_.bindAll(this, 'clickbtn');
},
events:
{
"click .btn": "clickbtn"
},
render: function () {
....
{
});
The problem is, it produces the following output:
<div><div class="row">...</div></div>
How do I get rid of the outer div? I tried removing the tagName property from the view but it still puts a div?