CSCI 3342 Web Development
Fall 2024

Server-Side HTML

URL Parameters

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

Assignment Checklist

Add links to the '/item_view' route that include the id of the item
Display the correct item details on '/item_view' based on the item id requested (the reviews are still mocked)