internal ITemplate GetTemplate(string templateText, IDictionary <string, object?> variableTemplate, string templateName, string?templatePath) { Settings.IsReadOnly = true; return(Settings.DynamicTemplates ? (ITemplate)DynamicTemplate.LoadTemplate(this, templateText, templateName, templatePath) : CompiledTemplate.LoadTemplate(this, templateText, variableTemplate, templateName, templatePath)); }
internal CompiledTemplate GetTemplate <T>(string templateText, CompiledScope scope, string templateName, string?templatePath) { Settings.IsReadOnly = true; if (Settings.DynamicTemplates) { throw new NotImplementedException(); } return(CompiledTemplate.LoadTemplate(this, templateText, scope, templateName, templatePath)); }