def METHOD_NAME(self, filename: str, /, **kwargs: Any) -> str:
    """Render the specified template."""
    with self.error_handler(f"Couldn't render template {filename!r}."):
        return self.env.get_template(filename).METHOD_NAME(kwargs)