ASP.NET MVC 2 supports Spark!

What? hear me out. The release of ASP.NET MVC 2 includes an amazing hidden gem. You see the “Add View/Controller” dialog now takes into account a T4 directive “output extension”.

Getting started with Custom CodeTemplates

To get started with Custom CodeTemplates check out this excellent article by K. Scott Allen

Getting started with Custom CodeTemplates and Spark

  1. At the top of your templates add the output extension as shown below.
  2. Modify the template to use spark.

image

No related posts.