The Big Comparison of ASP.NET MVC View Engines

9,698 views

Published on

My presentation from SDC 2011.

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
9,698
On SlideShare
0
From Embeds
0
Number of Embeds
2,293
Actions
Shares
0
Downloads
66
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

The Big Comparison of ASP.NET MVC View Engines

  1. 1. THE BIG COMPARISON ofASP.NET MVC View Engines Shay Friedman
  2. 2. ASP.NET MVC
  3. 3. Credits: Nestosjp - http://www.flickr.com/photos/68901973@N00/3862119622
  4. 4. THE BIG COMPARISON of ASP.NET MVC View EnginesWebForms, NHaml, Spark, StringTemplate, Razor
  5. 5. Shay Friedman Co-Founder, Trainer, Consultanthttp://IronShay.com | shay@ironshay.com | @ironshay
  6. 6. which view engine have you used in production?
  7. 7. the facts
  8. 8. Web Forms View Engine (ASPX) since 1996 expressiveness, explicitness
  9. 9. StringTemplate since 2003 Jamison open-sourcetrue model-view separation
  10. 10. NHaml since 2007Andrew Peters, Steve Wagner, Simon Cropp open-source html is bad
  11. 11. Spark since 2008 Luis DeJardin open-sourceseamless integration with HTML
  12. 12. Razor since 2011compactness and fluidness
  13. 13. the code
  14. 14. hello world
  15. 15. html encoded not html encoded
  16. 16. cast your vote!
  17. 17. loops
  18. 18. layouts
  19. 19. from layoutfrom page
  20. 20. cast your vote!
  21. 21. displaying a form
  22. 22. DRY!
  23. 23. font size text
  24. 24. SayHello.ascxPage.aspx
  25. 25. SayHello.st Page.st
  26. 26. _sayHello.haml Page.haml
  27. 27. cast your vote!
  28. 28. summary
  29. 29. resources ASPX, razor: http://asp.net/mvc NHaml: http://code.google.com/p/nhaml Spark: http://sparkviewengine.com/StringTemplate: http://code.google.com/p/string-template-view-engine-mvc Slides + code + detailed resource list: http://IronShay.com
  30. 30. Shay Friedman | http://IronShay.com | shay@ironshay.com | @ironshay
  31. 31. Thank you!Shay Friedman | http://IronShay.com | shay@ironshay.com | @ironshay

×