In this step, replace the static mockup
item_view.html
with a template and dynamic HTML generation. Follow the video example
below to:
- Convert the
item_view.html
mockup into an EJS template
- Create an
/item_view
GET route that renders the template
- Add ids to the items in your database
- Use a URL parameter to control which item is displayed on
/item_view
- Display the item details (ignore reviews for now) on the
item_view
template
- Update
/items
with links to /item_view
that include the id of the item to display