To install click the Add extension button. That's it.

The source code for the WIKI 2 extension is being checked by specialists of the Mozilla Foundation, Google, and Apple. You could also do it yourself at any point in time.

4,5
Kelly Slayton
Congratulations on this excellent venture… what a great idea!
Alexander Grigorievskiy
I use WIKI 2 every day and almost forgot how the original Wikipedia looks like.
Live Statistics
English Articles
Improved in 24 Hours
Added in 24 Hours
Languages
Recent
Show all languages
What we do. Every page goes through several hundred of perfecting techniques; in live mode. Quite the same Wikipedia. Just better.
.
Leo
Newton
Brights
Milds

Text Template Transformation Toolkit

From Wikipedia, the free encyclopedia

Text Template Transformation Toolkit (usually referred to as "T4") is a free and open-source template-based text generation framework. T4 source files are usually denoted by the file extension ".tt".

YouTube Encyclopedic

  • 1/5
    Views:
    103 412
    4 678
    7 876
    31 381
    2 751
  • Part 54 T4 templates in asp net mvc
  • Create Your Own T4 Building Blocks | Pluralsight
  • T4 templates and automatic code generation - how professionals create databases part 6, MsSql
  • Custom Item Templates in Visual Studio
  • Using T4 Templates to Generate View Names

Transcription

Overview

T4 is used by developers as part of an application or tool framework to automate the creation of text files with a variety of parameters. These text files can ultimately be any text format, such as code (for example C#), XML, HTML or XAML.

T4 uses a custom template format which can contain .NET code and string literals in it, this is parsed by the T4 command line tool into .NET code, compiled and executed. The output of the executed code is the text file generated by the template.[2] By using the Text Transformation class, T4 can also be run entirely from within a .NET application, eliminating the need for the end user to have Visual Studio installed.

T4 is used within Microsoft in ASP.NET MVC for the creation of the views and controllers, ADO.NET Entity Framework for entity generation, and ASP.NET Dynamic Data.[3] It is also used outside of Microsoft in projects such as SubSonic.[4]

T4 templating is supported in Visual Studio, MonoDevelop and JetBrains Rider.[5]

Controls

There are four types of controls handled by the T4 template transformation engine.

Name Syntax Description
Directives <#@ ... #> Instructions for the transformation engine
Standard control blocks <# ... #> Code to be executed (e.g. loops)
Expression control blocks <#= ... #> Expressions evaluated and converted to a string
Class feature control blocks <#+ ... #> Class and function definitions

History

  • 2005: Microsoft released the first version of T4 as an out-of-band release for Visual Studio 2005
  • 2008: Microsoft includes it with Visual Studio 2008
  • 2010: Microsoft includes it with Visual Studio 2010 which included significant new features to improve performance, usability for both template authors and tool builders and better integration into Visual Studio's DSL tools.[6]
  • 2015: Visual Studio 2015 Update 2 can use C# version 6.0 features[7]
  • 2017: Open source version of engine released which supports .NET Core[8]
  • 2019: JetBrains adds support for T4 in Rider[9]

See also

References

  1. ^ "Tags · mono/t4 · GitHub". GitHub T4 repository. Retrieved 2020-01-06.
  2. ^ Web Templates (2013), Website templates, Website Templates South Africa, ISBN 978-1-4251-3374-0, retrieved 19 November 2013
  3. ^ "Fun with T4 templates and Dynamic Data - Angle Bracket Percent - Site Home - MSDN Blogs". Blogs.msdn.com. 2008-11-26. Retrieved 2012-05-17.
  4. ^ "SubSonic v3's T4 Templates « Daily Cycle". Gcapnias.wordpress.com. 2009-01-12. Retrieved 2012-05-17.
  5. ^ "Rider: The Cross-Platform .NET IDE from JetBrains".
  6. ^ "What's new in T4 in Visual Studio 2010 - [Profoundly Esoteric Image] - Site Home - MSDN Blogs". Blogs.msdn.com. 2010-04-15. Retrieved 2012-05-17.
  7. ^ "Code Generation and T4 Text Templates - Visual Studio (Windows)".
  8. ^ "Mono.TextTemplating". GitHub. 22 October 2021.
  9. ^ "ForTea". GitHub. 20 October 2021.

External links

This page was last edited on 20 June 2023, at 21:51
Basis of this page is in Wikipedia. Text is available under the CC BY-SA 3.0 Unported License. Non-text media are available under their specified licenses. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc. WIKI 2 is an independent company and has no affiliation with Wikimedia Foundation.