Join Daniel Khan for an in-depth discussion in this video Creating a dynamic feedback page, part of Building a Website with Node.js and Express.js.
- [Instructor] The only page that is missing now…is the feedback page so let's start…with creating the template for it.…This should already look familiar to you.…So I will open feedback html…from the provided folder,…copy all of it out,…head over into my browser,…and look for html to pug converter.…I paste in my html and get pug syntax back…and in server, views,…I create a new folder, feedback.…
In there I create a file, index.pug,…and I copy in the complete markup.…Now I can remove the script part already…and everything from top to…where the actual content starts.…Now let's simply look into speaker index…and we see that it extends into block statement.…At the beginning I copied it out and pasted…into my feedback page,…and I have to fix the indentation.…
Next we have to finish the route for our feedback page.…For that I go into routes, feedback, index.js,…and in there I want to res.render…instead of res.send,…feedback, and I already set the template variable…page should be feedback.…Let's uppercase that.…
Good, now let's restart.…
- Creating a server with Express and pure Node.js
- Handling errors in Express
- Creating routes
- Using templates
- Working with the Pug template engine
- Implementing the site structure and logic
- Working with conditionals
- Dealing with POST requests
- Sanitizing user inputs and handling form errors
Skill Level Beginner
What you should know1m 40s
1. Getting Started
2. Express Basics
3. Getting Started with Our Project
4. Getting Started with Templates
5. Implementing the Site Structure and Logic
6. Handling Form Data
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.