render method
Renders a template with the provided data asynchronously.
Implementation
Future<String> render(String templateName, [Map<String, dynamic>? data]) async {
final templateContent = await _loadTemplate(templateName);
return _compile(templateContent, data ?? {});
}