Files
mROA/mROA.CodegenTools/Reading/LinkSectionReader.cs
T

20 lines
523 B
C#
Raw Normal View History

2025-06-03 12:09:32 +03:00
namespace mROA.CodegenTools.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);
}
}
}