O'Reilly logo

Better Backbone Applications with MarionetteJS by Joseph Zimmerman, Smashing Magazine

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 15: The Home Screen

We start our fun in the area where the user would start their fun: the list of quizzes. We made sure to automatically create a couple quizzes during initialization so that the list isn’t empty — nobody likes an empty table, right? The application will have something to show the user when the table is empty, but we’ll be nice to them to start.

First things first: let’s create a folder where we’ll put the files for this subapplication. Inside the js/modules folder, let’s add a QuizList folder, and we might as well add a views folder inside that one right away. We’ll also create an index.js file inside the js/modules/QuizList folder with the following contents:

js/modules/QuizList/index.js

QuizEngine.module('QuizList', 

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required