Template Overview

The RapTier code generation engine is based on Active Templates (AT) technology. If you have done some ASP.NET or JSP programming, then you will find that AT are extremely easy to learn and use. Just like an ASP.NET page, an active template is a text file that contains C# script blocks. You will not have to learn another scripting language, and can use all the power of .Net Framework and flexibility of C#.

Every time before RapTier generates code, the Active Templates Engine (ATE) checks whether any file in the template group was updated. If changes were made, ATE converts all templates in the current group to C# classes that inherit the SharpPower.Ate.TextFileGenerator abstract class and compiles them to a .NET assembly. After the assembly is compiled, ATE loads it, creates the new instances of the necessary template classes and calls the Generate method created by the ATE from the template code.

A template file contains any combination of the following elements: