You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trais McAllister edited this page Aug 15, 2024
·
1 revision
Examples
Explore practical examples of using MtconnectTranspiler.CodeGenerators.ScribanTemplates.
Example 1: Code Documentation Generation
Use the VisualStudioSummaryInterpreter to generate XML code documentation from custom markdown.
vargenerator=serviceProvider.GetRequiredService<IScribanTemplateGenerator>();varitems=newList<CodeClass>{newCodeClass{Name="ExampleClass",Summary="This is an example class."}};generator.ProcessTemplate(items,"output/path");
Example 2: Python Code Formatting
Automatically format Python code using the PythonCodeFormatter.