Skip to content
Myr

fixed ejs example for new locals

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent 38b3f1b · Browse files · 5 files+12 added−15 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

5 files+12 added−15 removed

  • other:+12 added−15 removed

5 files+12 added−15 removed

deleted:examples/ejs/views/partials/user.ejs-1 removed
1<li><%= user.name %> &lt;<%= user.email %>&gt;</li>
added:examples/ejs/views/_user.ejs+1 added
1<li><%= user.name %> &lt;<%= user.email %>&gt;</li>
modified:examples/ejs/views/layout.ejs+4 added-4 removed
1<html>2 <body>3 <h1>Users</h1>4 <%- body %>5 </body>2 <body>3 <h1>Users</h1>4 <%- body %>5 </body>6</html>
modified:examples/ejs/views/users.ejs+1 added-1 removed
1<ul id="users">2 <%- partial('user', users) %>2 <%- partial('user', users) %>3</ul>
modified:examples/ejs/app.js+6 added-9 removed