Junky2712
Junky2712

Reputation: 3

Creating Backbone application

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

Answers (1)

machineghost
machineghost

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

Related Questions