Reputation: 3
I am creating a single page application using backbone.js. My scenario is to render three different layouts in the same page on clicking three different clicks.,,should I create three render functions for these click events in the view?
Upvotes: 0
Views: 37
Reputation: 35790
You could create three different render methods, but it would probably make more sense to make a different view for each page. You can then hook each of those views up to separate routes to get three (pseudo-) pages.
Upvotes: 1