Configurable indentation for NHaml

Posted by: Code Climber, on 18 Nov 2008 | View original | NEW Bookmarked: 0 time(s)

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

Advertisement
Category: ASP.NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 408 | Hits: 20

Similar Posts

  • Visual Studio Add-in C# Code Template more
  • The Emergence of Choice in the .NET Ecosystem more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD