def generate_hcard(template=None, **kwargs):
if template == "<STR_LIT>":<EOL><INDENT>hcard = DiasporaHCard(**kwargs)<EOL><DEDENT>else:<EOL><INDENT>raise NotImplementedError()<EOL><DEDENT>return hcard.render()<EOL>
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)