Top 4 C# text-templating Projects
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
NTypewriter
File/code generator using Scriban text templates populated with C# code metadata from Roslyn API.
Recently, while creating some experimental C# source code generators (xafero/csharp-generators), I was just concatenating strings together. Like you do, you know, if things have to go very quickly. If you have a simple use case, use a formatted multi-line string or some template library like scriban. But I searched for a way to generate more and more complicated logic easily - like for example, adding raw SQL handler methods to my pre-generated DBSet-like classes for my ADO.NET experiment. You could now say: Use Roslyn and that's really fine if you look everything up in a website like SharpLab, which shows immediately the syntax tree of our C# code.
Project mention: This week I released v2.1 of my text-templating library Weave that now uses Source Generators by default. | /r/dotnet | 2023-12-07I am currently using NTypewriter for code generation.
Index
What are some of the best open-source text-templating projects in C#? This list will help you:
Project | Stars | |
---|---|---|
1 | scriban | 2,917 |
2 | Textrude | 117 |
3 | NTypewriter | 109 |
4 | T4Editor | 23 |
Sponsored