views:

411

answers:

2

Should I learn NHaml?

What does it provide me over a classic ASP.NET MVC view? What are the pros and cons?

Are you using it via the MVC Contrib project?

I have been seeing more and more about it. For example... I saw a blog post by Matthew Podwysocki using ASP.NET MVC, NHaml, and F#!

+5  A: 

It should only take a few hours if you're familiar with the MVC framework, so I'd say yes, learn it. NHaml is a compact way to write HTML code. It is pretty easy to read and write once you get used to it. The downsides are that you lose the ASP.NET controls, so server-side processing is more difficult. Your team may be resistant, too.

Dan Goldstein
A: 

Absolutely, learning NHAML is really easy and it is much easier to write than the web forms syntax.

Peter Moresi