File: functions.ejs

package info (click to toggle)
node-ejs 3.1.10%2B~3.1.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,144 kB
  • sloc: javascript: 2,476; makefile: 5
file content (9 lines) | stat: -rw-r--r-- 184 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
<h1>Users</h1>

<% function user(user) { %>
  <li><strong><%= user.name %></strong> is a <%= user.age %> year old <%= user.species %>.</li>
<% } %>

<ul>
  <% users.map(user) %>
</ul>