Hi Cargi,
what exactly do you mean when you say "from JavaScript". Do you mean at runtime?
I recommend to write a custom view that extends from M.ContainerView and implements another render function:
M.CargiView = M.ContainerView.extend({
render: function(){
this.html = '';
this.html += '<div id="''+
this.id + " ' + this.style() + '><div><div><div><div>';
this.html += this.renderChildViews();
this.html += '</div></div></div></div></div>'
return this.html;
}
});
Hope this helps you.
best regards
marco
ps: Be patient didn't validate the source code