开发者

T4 Template Transformation Service

开发者 https://www.devze.com 2023-03-11 11:44 出处:网络
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 A

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

0

精彩评论

暂无评论...
验证码 换一张
取 消