Skip to content
Myr

Fixing spec for EJS partial

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

* Had to use double quote and not single quote for the partial filename * Couldn't get each to work. Using ugly `for` for now

authored by Benny Wong · committed by Benny Wong · parent 624cf93 · Browse files · 2 files+7 added−2 removed
This commit

State

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

Diff stats

2 files+7 added−2 removed

  • tests:+7 added−2 removed

2 files+7 added−2 removed

added:spec/fixtures/layout.html.ejs+5 added
1<html>2 <body>3 <%= body %>4 </body>5</html>
modified:spec/fixtures/list.html.ejs+2 added-2 removed
1<ul>2 <% for (item in items) { %>3 <%= this.partial('item.html.ejs', { locals: { item: item }}) %>2 <% for (idx in items) { %>3 <%= this.partial("item.html.ejs", { locals: { item: items[idx] }}) %>4 <% } %>5</ul>