In this recipe, we're going to render a list of message objects. Each message object will have an author, arrival time, body, and read status. We're going to use a different style to distinguish between read and unread messages.
We need to download EJS from http://embeddedjs.com/ and extract
ejs_production.js in our
Let's get started.
index.html, it will contain a header, the EJS template, the placeholder to render the message list, and some styles for the list: