render method
Renders the template called name with values.
Throws TemplateNotFound when no such template exists, so a typo is a failure rather than an empty page.
Implementation
@override
String render(String name, Map<String, Object?> values) {
final template = _templates[name];
if (template == null) throw TemplateNotFound(name, names);
return template.renderString(values);
}