Esempio n. 1
0
 public void Prepare()
 {
     _variableProvider
     .GetVariableValues()
     .GetValueOrNone(key: GeneratorName)
     .AndThen(name => _variableProvider.RegisterValue(KebabGeneratorName, name.ParamCase()));
 }
        private async Task <string> OutputFromTemplate(string content)
        {
            var stubble = _stubbleBuilder
                          .Configure(StubbleBuilderSettings)
                          .Build();

            return(await stubble.RenderAsync(content, _variableProvider.GetVariableValues(), TemplateRenderSettings()));
        }