Friday, July 09, 2010

(Web)Matrix Reloaded

Microsoft has resurrected WebMatrix the free tool for developing web pages. The latest WebMatrix includes ASP.NET Extensions and IIS Express - a free developer tool. The new tool also supports creating ASP.NET MVC and or ASP.NET Web Pages. This is how this new feature 'Razor' is explained by Scot Guthrie in his blog [].
The design goals for this upgraded WebMatrix are,

Compact, Expressive, and Fluid (looks like this has been achieved)
Easy to Learn
Is not a new language (corollary to the above)
works with any Text Editor
Has great intellisense
Unit Testable

Appears to be an all round improvement. The replacement for 'cassini' may be a more robust web server in the form of IIS Express.

Here is the trick to using Razor

<%=name%/> is replaced by @name
<%=productID%/> is replaced by $productID

You get the picture. Six characters replaced by a single character. Quite a saving if you had had a great big page and you don't need to handle those awkward angles (sigh! I have so gotten used to them).

There are more examples in Scott's blog, make sure you look it up.

I went back to take a look at an article I created in 2006 on the previous version. Even back then it was quite interesting.

No comments: Protection Status