Files
mROA/mROA.Codegen/Tools/Reading/LinkSectionReader.cs
T
2025-03-29 19:31:10 +03:00

20 lines
524 B
C#

namespace mROA.Codegen.Tools.Reading
{
public class LinkSectionReader : LeadingTextSectionReader
{
public LinkSectionReader() : base("<!L")
{
}
public override ITemplateSection ExtractSection(ref int index, TemplateDocument document)
{
var from = index;
index = PassCaretToCloseSymbol();
var to = index - 1;
var tagText = GetTagValue(from, to);
return new LinkTemplateSection(tagText, document);
}
}
}