class_docstr: Class which provides basic HTML templating.
docstr: Render an HTML template with the given data.
  
  This is done by replacing instances of `{{ key }}` with `value`
  from the keyword arguments.
  
  Returns:
      HTML template with the keys of the kwargs replaced with corresponding
          values.
docstr_tok: ["Render","an","HTML","template","with","the","given","data",".","This","is","done","by","replacing","instances","of","`","{","{","key","}","}","`","with","`","value","`","from","the","keyword","arguments",".","Returns",":","HTML","template","with","the","keys","of","the","kwargs","replaced","with","corresponding","values","."]
code: def render(self, **kwargs) -> str:
      """Render an HTML template with the given data.
  
      This is done by replacing instances of `{{ key }}` with `value`
      from the keyword arguments.
  
      Returns:
          HTML template with the keys of the kwargs replaced with corresponding
              values.
      """
      rendered = self.template
      for key, value in kwargs.items():
          if isinstance(value, List):
              value = "".join(value)
          rendered = rendered.replace(
              "{{ " + key + " }}", value if value else ""
          )
      return rendered
  
imports: import pathlib
  from typing import List
  from ray.util.annotations import DeveloperAPI
label_desc: Use image node_id 2 for calling the Template obj's underlying member method code with example usage: obj.render() and returns: rendered