Adding Templates and Views
Explore how to transform static HTML into dynamic templates and views using Marionette.js. This lesson guides you through creating header templates and defining item and composite views to render navigation menus, enhancing your application's interactivity and modularity.
We'll cover the following...
We'll cover the following...
With our models set up, we can move on to changing our index.html file so our header menu will be rendered by Marionette instead of static HTML.
Adding header templates
Here’s what we have now:
We need to remove the header menu in lines 1–7 from the displayed ...