Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
ERB and Mustache side-by-side
<h1><%= header %></h1>
<% if not item.empty? %>
<% for i in item %>
<% if i[:current] %>
<li><strong><%= i[:name] %></strong></li>
<% else %>
<li><a href="<%= i[:url] %>"><%= i[:name] %></a></li>
<% end %>
<% end %>
<% end %>
<% if item.empty? %>
<p>The list is empty.</p>
<% end %>
<li><a href="{{url}}">{{name}}</a></li>
<p>The list is empty.</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment