Skip to content

Commit bc17c0a

Browse files
committed
Emit examples by iterating over its list
Without this, multiple examples will render with a separating comma
1 parent 506317c commit bc17c0a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/yuidoc-p5-theme-src/scripts/tpl/item.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ <h4><span id="reference-example">Example</span></h4>
66
<span class="visuallyhidden">Examples for <%=item.name%></span>
77

88
<div class="example-content" data-alt="<%= item.alt %>">
9-
<%= item.example %>
9+
<% _.each(item.example, function(example){ %>
10+
<%= example %>
11+
<% }); %>
1012
</div>
1113
</div>
1214
<% } %>

0 commit comments

Comments
 (0)