code: def generate_hcard(template=None, **kwargs):
      
      if template == "diaspora":
          hcard = DiasporaHCard(**kwargs)
      else:
          raise NotImplementedError()
      return hcard.render()
docs: Generate a hCard document.
  
      Template specific key-value pairs need to be passed as ``kwargs``, see classes.
  
      :arg template: Ready template to fill with args, for example "diaspora" (optional)
      :returns: HTML document (str)