Is ASP MVC equivalent for JSTL tags?

Are there libraries that support JSTL style encoding in ASP MVC view?

I prefer

<c:forEach var="c" items="${Customers}">
  <c:out value="${c.Name}"/><br/ >
</c:forEach>

to

<% foreach(Customer c in customers) { %>
  <%= c.Name %><br/ >
<% } %>
+5
source share
3 answers

Yep, Spark is probably your friend on this one. It looks pretty similar to the 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>
+4
source

The closest thing I know is the Spark Viewer .

0
source

The viewing mechanisms closest to JSTL coding are as follows:

From JSTL, suggested Sharp fragments would be better in terms of usage and learning curve

0
source

All Articles