Skip to content

Instantly share code, notes, and snippets.

@erhangundogan
Last active December 10, 2015 16:28
Show Gist options
  • Save erhangundogan/4460646 to your computer and use it in GitHub Desktop.
Save erhangundogan/4460646 to your computer and use it in GitHub Desktop.
asp.net
<% if(someCondition) { %>
<ol>
<% foreach(var item in Model) { %>
<li><%: item.ToString() %></li>
<% } %>
</ol>
<% } %>
razor
@if(someCondition) {
<ol>
@foreach(var item in Model) {
<li>@item.ToString()</li>
}
</ol>
}
jade
-if(someCondition)
ol
-foreach(var item in Model)
li=item
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment