Derek Fowler looks at using XSLT to create views in ASP.NET MVC.
There's something about Web Forms that never felt quite right to me; it all seemed a bit too much like a bodge that created more problems than it solved. I've been having a tinker with ASP.NET MVC for the past few days now and I'm really liking the way it all fits together; giving you clean separation between the layers and a means of passing data between them.
The View layer in MVC uses a very Classic ASP-esque markup for mixing code and HTML. Seems rather dirty but by this point any major processing should have been done and all that you'll need to do is render HTML with maybe some looping.
That being said if all we'll need to do by this point is some looping at the most then why not use an XSL transform instead?
0 comments:
Post a Comment