[WONT RUN] RazorEngine
This commit is contained in:
parent
1a9fc24ba9
commit
5f188c99a8
7 changed files with 292 additions and 9237 deletions
25
cli/Modules/MyGenerator.cs
Normal file
25
cli/Modules/MyGenerator.cs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using RazorEngine.Configuration;
|
||||
using RazorEngine.Templating;
|
||||
|
||||
namespace cli.Modules
|
||||
{
|
||||
public class MyGenerator : IModule
|
||||
{
|
||||
|
||||
ILogger logger;
|
||||
public MyGenerator(ILoggerFactory loggerfactory)
|
||||
{
|
||||
logger = loggerfactory.CreateLogger<MyGenerator>();
|
||||
}
|
||||
|
||||
public void Run(string[] args)
|
||||
{
|
||||
logger.LogInformation(nameof(MyGenerator));
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue