Are there any libraries that support JSTL style coding in an ASP MVC view?
I much prefer
<c:forEach var="c" items="${Customers}">
<c:out value="${c.Name}"/><br/ >
</c:forEach>
to
<% foreach(Customer c in customers) { %>
<%= c.Name %><br/ >
<% } %>
Yep, Spark is probably your friend on that one. Looks pretty similar in spirit.
<c:forEach var="c" items="${Customers}">
<c:out value="${c.Name}"/><br/ >
</c:forEach>
becomes
<for each="var c in Customers">
${c.Name}<br/>
</for>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With