Static Views

Learn how to modify the display using static views and templates in Marionette.

Now that we have the basics set up, let’s use Marionette to display content in our index.html file.

We’ll start by putting everything within the HTML file. However, as you can guess, this approach isn’t advisable for anything beyond a trivial application. So, we’ll quickly get around to refactoring our simple application into something more robust.

Let’s start by adding some JavaScript code in our index.html file:

Get hands-on with 1200+ tech skills courses.