code: public String render(String template, Map<String, ?> bindings) {
      RenderResult result = renderForResult(template, bindings);
  
      List<TemplateError> fatalErrors = result.getErrors().stream()
          .filter(error -> error.getSeverity() == ErrorType.FATAL)
          .collect(Collectors.toList());
  
      if (!fatalErrors.isEmpty()) {
        throw new FatalTemplateErrorsException(template, fatalErrors);
      }
  
      return result.getOutput();
    }
docs: Render the given template using the given context bindings.
  
  @param template
  jinja source template
  @param bindings
  map of objects to put into scope for this rendering action
  @return the rendered template
  @throws InterpretException
  if any syntax errors were encountered during rendering