It is pretty basic thing but I still can't find the answer. I need to set View's el:
to div which is in underscore.js
template.
<script id="product" type="text/template">
<div class="productInfo"></div>
<div class="prices"></div>
<div class="photos"></div>
</script>
The first view renders the product
template. I need to render other Views to divs in this template. I don't know how to set el:
, because el: '.prices'
just don't work with divs in template.
This Views structure is similar to How to handle initializing and rendering subviews in Backbone.js?. But I use template instead of rendering to existing divs.