Skip to content

Latest commit

 

History

History
76 lines (70 loc) · 2.1 KB

File metadata and controls

76 lines (70 loc) · 2.1 KB
uid level summary
templates
200
The document provides a guide on writing T# templates in Metalama, covering topics like template language introduction, compile-time code, dynamic code generation, and debugging.

Writing T# templates

Code templates in Metalama are written in a dialect of C#, known as T#. The syntax of T# is fully compatible with C#, but T# is compiled differently.

This chapter includes the following articles:

<tr>
    <td>
        <xref:debugging-aspects>
    </td>
    <td>
        This article provides guidance on how to debug templates.
    </td>
</tr>
Article Description
This article provides an introduction to T#, the template language for Metalama.
This article outlines the subset of the C# language that can be used as compile-time code and illustrates how to create templates with rich compile-time logic.
This article details different techniques for generating run-time code dynamically.
This article clarifies how to generate run-time `System.Reflection` objects for compile-time `Metalama.Framework.Code` objects from a template.
This article describes how to pass parameters, including generic parameters, from the `BuildAspect` method to the template.
This article explains how templates can invoke other templates, referred to as auxiliary templates.