2.2 Creating a Base Template
In this lesson, you'll create a second route to display data for the end user. The problem, as you will quickly discover, is duplication. Between the two pages that you have now created, you'll see that there is upwards of 90% duplication of HTML! This is always a bad idea. To fix that problem, I'll show you how to refactor the duplicated code into a shared base template that you can reuse over and over.