Skip to content
Myr

index.ejs

This file

Path

examples/view-locals/views/index.ejs

20 lines · 500 bytes

Last changed by

Not known.

History of this file

Take it

1<!DOCTYPE html>2<html>3  <head>4    <meta charset="utf-8">5    <meta name="viewport" content="width=device-width,initial-scale=1">6    <title><%= title %></title>7    <style media="screen">8      body {9        padding: 50px;10        font: 16px Helvetica, Arial;11      }12    </style>13  </head>14  <body>15    <h2><%= title %></h2>16    <% users.forEach(function(user) { %>17      <li><strong><%= user.name %></strong> is a <% user.age %> year old <%= user.species %></li>18    <% }); %>19  </body>20</html>