Contents tagged with Razor
Just for fun added a simple support for using Razor together with OWIN. You can read a little bit about OWIN on my previous blog post.
In my previous blog post “Using Razor together with ASP.NET Web API” I wrote about a solution to use a MediaTypeFormatter to render HTML by using Razor when the API is accessed from a browser. I’m now sort of done with the basics and will share the current solution in this blog post. The source code will later be available.
I decided to make the solution more extendable so I created a HtmlMediaTypeViewFormatter that inherits from the MediaTypeFormatter:
Note: This blog posts is based on the ASP.NET MVC 3.0 Preview 1.