Example #1
0
        public override void Process(TagHelperContext context, TagHelperOutput output)
        {
            output.TagName = null;

            var capture = _scriptManager.GetScriptBlocks(Section);

            if (capture == null)
            {
                output.SuppressOutput();
                return;
            }

            var result = new HelperResult(async textWriter => await RenderBlocks(textWriter, capture));

            output.Content.SetHtmlContent(result);
        }