Files
ejs/examples/functions.ejs
Timothy Gu 5365d6a823 Add some examples
Ported from EJS v1.
2015-01-25 13:23:16 -08:00

10 lines
184 B
Plaintext

<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>