I am new to Marionette and trying to understand how to break up HTML markup into Marionette views. The markup I have is for a simple Trader Desktop having two tabs: one showing accounts and another showing pending orders - please see here: http://codepen.io/nareshbhatia/pen/cKdur. The accounts tab is further divided into an accounts table on the LHS and an accounts chart on the RHS. Both these views should be driven by the same model. The tabs are created using Bootstrap. How would you break up this markup into Marionette views?
- Is it possible/advisable to arrange Marionette views so that this exact markup is produced?
- How should the Bootstrap tabs be modeled?
- How should the accounts table and accounts chart be modeled? I was thinking that this would be a Marionette Layout with two regions, but then started thinking why? Isn't the purpose of a layout to give the ability to instantiate different kinds of views in each of its regions? Here I will always have two fixed views, so is layout an overkill?
Thanks in advance for your time.