コード例 #1
0
        private async Task <string> OutputFromTemplate(string templateName)
        {
            var stubble = _stubbleBuilder
                          .Configure(StubbleBuilderSettings)
                          .Build();

            return(await stubble.RenderAsync(_templateLoader.GetTemplate(templateName), _variableProvider.GetVariableValues(), TemplateRenderSettings()));
        }