Created
July 13, 2019 09:31
-
-
Save DmitrySikorsky/32fcab7aaca384eb0f89c1e4b7ea269b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override void Process(TagHelperContext context, TagHelperOutput output) | |
{ | |
if (this.For == null) | |
return; | |
output.SuppressOutput(); | |
output.Content.Clear(); | |
foreach (Localization localization in this.Localizations) | |
{ | |
output.Content.AppendHtml(this.CreateInputTag(localization)); | |
output.Content.AppendHtml(" "); | |
output.Content.AppendHtml(this.CreateCultureCodeTag(localization.CultureCode)); | |
output.Content.AppendHtml(this.CreateBrTag()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment