using System; namespace mROA.CodegenTools { public class ProgrammableTextSection : ITemplateSection { public TemplateDocument Context { get; set; } public int TargetLength => 0; private Func _bakeFunc; public ProgrammableTextSection(Func bakeFunc, TemplateDocument context) { _bakeFunc = bakeFunc; Context = context; } public string Bake() { return _bakeFunc(Context.AdditionalContext); } } }