views:

279

answers:

3

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/ >
<% } %>
A: 

The closest thing I know is the Spark view engine.

Mauricio Scheffer
A: 

The view engines which are closest to JSTL style coding are:

From a JSTL prospective Sharp tiles would be the better in the sense of appliance and learning curve

Hoghweed
+1  A: 

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>
loudej