asp.net-mvctemplatespugviewengine

Is there a jade template engine for ASP.NET MVC?


I've always been searching for a best suitable ViewEngine for me in ASP.NET MVC, and after observing a ton of template engines in either JAVA, PHP, Python, Ruby, NodeJS... I found the jade template and loved it since it has some really nice features:

  1. Encode all html by default, just like razor, it's a nice addition to security and convinence
  2. Structure by indent, so get rid of the tag hell, after writing HTML for years, I hate all those < and >!
  3. Clear logic code, by preceding if/else/for by a single line "-" it minimize the code for choice and loop.
  4. Whitespace strip, jade outputs "compressed" html which do not have extra whitespace between tags or texts

I have also observed many ViewEnginge for ASP.NET MVC, some are quite close to jade, but still with defects:

so I wounder if there is a ViewEngine closer to jade, ot is there an port of jade to .NET?

Thanks


Solution

  • It's not as clean as Jade, but you won't have to write 'real' HTML, with WingBeats.