T4 Templates

2,220 views
2,042 views

Published on

An introduction to T4 templates

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,220
On SlideShare
0
From Embeds
0
Number of Embeds
969
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

T4 Templates

  1. 1. T4
  2. 2. Overture Level 01-01-02 Interactive On the Menu What it is? Demo Alternatives Learning’s
  3. 3. T4 is NOT and of these You may feel like Skynet was built with T4 sometimes
  4. 4. TLA What does T4 stand for? Text Template Transformation Toolkit Three Two Letter Acronym
  5. 5. Why do we need it? Cause developers are expensive and Xbox games are fun
  6. 6. History Something is missing here…
  7. 7. A word of warning… Out of the box tooling DOES NOT EXIST It’s notepad + command line basically 3rd parties can make the pain go away I use the free stuff from Tangible & T4 Toolbox You will too, accept that and move on
  8. 8. Is this thing used? ASP.MVC uses T4 templates for views and controllers DSL tools in VS 2010 use it BizTalk Architecture Tools 3rd Party uses like LINQ to SQL replacement
  9. 9. High Level Plan XAML CSV Template Code Output T4 toolkit .NET Framework C# HTML VB
  10. 10. Demoslike the moon landing Demos take lots of preparation, learning new skills and mostly faking it
  11. 11. What haven’t you seen? Build integration Pre-processed Templates
  12. 12. Alternatives CodeDOM Part of .NET Used internally by T4 More powerful Harder to learn Ideally for language scenarios
  13. 13. Alternatives CodeSmith Third Party $$$ More rugged tooling, debugging features
  14. 14. Alternatives NVelocity Port of Java’s Jakata Velocity Free Wildly different syntax
  15. 15. Alternatives Hire a monkey Maybe this is why you were hired…
  16. 16. Help?
  17. 17. Learning's Search for T4AND Visual Studio Text Template Use the Tangible T4 editor Use the T4 Toolkit Make use of scratch applications in prototyping For use within Visual Studio
  18. 18. Questions robertm@bbd.co.za www.sadev.co.za @rmaclean

×