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

20 lines
508 B
C#

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