To use MtconnectTranspiler.CodeGenerators.ScribanTemplates in your project, follow these steps.
MtconnectTranspiler.CodeGenerators.ScribanTemplates
Alternatively, you can install the package via the NuGet CLI:
dotnet add package MtconnectTranspiler.CodeGenerators.ScribanTemplates
In your Startup.cs or Program.cs, add the Scriban services:
Startup.cs
Program.cs
services.AddScribanServices(builder => { builder .UseTemplatesPath("path/to/templates") .UseResourceAssembly(typeof(YourProjectClass).Assembly, "YourProjectNamespace.EmbeddedTemplates") .AddMarkdownInterpreter("custom", new CustomMarkdownInterpreter()) .AddCodeFormatter("csharp", new CSharpCodeFormatter()); });
Next, you're ready to start using the template generation system.
There was an error while loading. Please reload this page.