def render_output(page, config, site, build, jinja_env):
    """
    Render the full template output for a page.

    Parameters
    ----------
    page : dict
        Dictionary with the page metadata and body content (in HTML not just
        Markdown).
    config : dict
        A dictionary with the default configuration and variables loaded from
        the file.
    site : dict
        Dictionary with the entire site content so far.
    build : dict
        Dictionary with information about the build environment.
    jinja_env
        A Jinja2 environment for loading templates.

    Returns
    -------
    html : str
        The converted HTML.

    """
    template = jinja_env.get_template(page["template"])
    html = template.render(page=page, config=config, site=site, build=build)
    return html