Configurable indentation for NHaml
Posted by: Code Climber,
on 18 Nov 2008 |
View original
NHaml, an alternative view engine for ASP.NET MVC written by Andrew Peters, uses indentation instead of opening and closing tags to identify code blocks. If you never saw something written in NHaml here is taste of it. If you want to loop over a list and put it inside a unordered list with webform you would write: <div class="list">
<ul>
<%foreach (var route in ViewData.Model) { %>
<li><%= route.Name %></li>
<% } %>
</ul>
</div>
...