Attention: We are retiring the ASP.NET Community Blogs. Learn more >

Microsoft's Template Engine

Microsoft is shipping T4, an ASP-like template engine. It's included in the 'Guidance Automation Extensions' and with the DSL tools package now part of the Visual Studio SDK, so it's free.

Actually, it looks it maybe redistributable, and in that case, as far as I know, will be the first template engine that can be freely redistributable. The 'maybe' is because the EULA is not very clear. I hope it will be more specific in future releases.

My fellow Visual Studio Wizard wrote a T4 editor for VS 2005 that includes several cool features. If you are working with the GAT/GAX, with DSLs or using T4 for generating code in other context, you should be using it.

2 Comments

  • That looks strangely familiar to a DeKlarit templater ;)



    Do you think this engine might end up making it into DK?

  • We are currently evaluating it.



    There are some syntax differences that are slightly annoying but we could live with them.



    There are also some performance differences, and we are more worried about those ones (we cache the compiled templates and T4 does not).



Comments have been disabled for this content.