File/code generator using Scriban text templates populated with C# code metadata from Roslyn API.
This version introduces Lambda filters for *.nt templates rendered by NTypewriter editor for Visual Studio.
instead of writing this:
for class in data.Classes | Symbols.WhereNameStartsWith "Pro"
you can write lambda function using c# syntax:
for class in data.Classes | Where 'x => x.Name.StartsWith("Pro")'
Lambda filters are not supported (yet) on other platforms (NTypewriter.SourceGenerator, NTypewriter.Online).
NTypewriter editor for Visual Studio:
NTypewriter.SourceGenerator:
dotnet build
updated nuget | from | to |
---|---|---|
Scriban | 5.7.0 | 5.9.0 |
WebView2 | 1.0.1901.177 | 1.0.1938.49 |
The newest version of Scriban allows to use string interpolation inside templates.
updated nuget | from | to |
---|---|---|
Scriban | 5.5.0 | 5.7.0 |
WebView2 | 1.0.1343.22 | 1.0.1901.177 |
NTypewriter has gotten SourceGenerator, which means *.nt templates can be rendered anywhere from now.
#65 - IType.IsCollection returns false for IList<T> #66 - No access to template output