ycdemo / express / examples/ mvc/ controllers/ pet/ views/ show.ejs
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <link rel="stylesheet" href="/style.css"> <title><%= pet.name %></title> </head> <body> <h1><%= pet.name %> <a href="/pet/<%= pet.id %>/edit">edit</a></h1> <p>You are viewing <%= pet.name %></p> </body> </html>