Geeks With Blogs

News

My Blog April 2010 Entries
A Semantic Model For Html: TagBuilder and HtmlTags
In this post I look into the code smell that is HTML literals and show how we can refactor these pesky strings into a friendlier and more maintainable model. The Problem When I started writing MVC applications, I quickly realized that I built a lot of my HTML inside HtmlHelpers. As I did this, I ended up moving quite a bit of HTML into string literals inside my helper classes. As I wanted to add more attributes (such as classes) to my tags, I needed to keep adding overloads to my helpers. A good ......

Posted On Wednesday, April 21, 2010 10:00 PM

Copyright © Ryan Ohs | Powered by: GeeksWithBlogs.net