From the course: Building a Website with Node.js and Express.js
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Creating a list page
From the course: Building a Website with Node.js and Express.js
Creating a list page
- [Instructor] So far, we've only have the index page template ready. Now it's time to implement some more pages. If we look at the static page, we see that there is a page that shows all speakers. We created a route for that already. When I click on a speaker, I get to their profile page. And when I look at this profile page, it contains a large image, just the artwork for this given speaker, and then some detailed information about this speaker. Such a pattern of list and detail pages is very common, and we need to find a way to let Express know which speaker it should show on the detail page. Such a pattern of list and detail pages is very common. We need to find a way to let Express know which speaker it should show on the detail page and this is where parameter routes come into place. Let's implement the speakers list template and this should by now look very familiar to you. And there, I look into my static folder…
Contents
-
-
-
-
-
-
(Locked)
Create a site-wide layout6m 54s
-
(Locked)
Using partials with EJS4m 56s
-
(Locked)
Template variables in more detail5m 57s
-
(Locked)
Looping through lists in templates11m 33s
-
(Locked)
Creating a list page6m 4s
-
(Locked)
Using parameter routes7m 9s
-
(Locked)
Challenge: Partials and lists2m 20s
-
(Locked)
Solution: Partials and lists8m 46s
-
(Locked)
-
-
-
-