Ejemplo n.º 1
0
 public MustacheTemplateService(ILogger <MustacheTemplateService> logger)
 {
     _stubble = new StubbleBuilder()
                .Configure(settings => settings.AddJsonNet())
                .Build();
     _logger         = logger;
     _templatePath   = Path.Join(AppDomain.CurrentDomain.BaseDirectory, "templates", "Mustache");
     _mustacheConfig = new MustacheConfig(_logger, _templatePath);
 }