We currently have an asp.net website that we use to generate html emails. Basically we pass in some parameters and it开发者_开发百科 spits out an html page that we then send in an email. Essentially ASP.NET is our templating engine. I was looking to for a different way of doing this and I was thinking about using T4 templates instead. Is there a way to generate templates on the fly with T4?
Absolutely. See the following links:
- http://msdn.microsoft.com/en-us/library/bb126445.aspx
- http://msdn.microsoft.com/en-us/library/ee844259.aspx
There is a command-line utility: TextTransform.exe
.
http://msdn.microsoft.com/en-us/library/bb126245.aspx
精彩评论