def generate_template_with_secrets(template_without_secret, secret_dict):
    """
    Generate the template with the secrets.

    :param template_without_secret: the template without the secret
    :type template_without_secret: jinja2.Template
    :param secret_dict: the secret
    :type secret_dict: dict
    :return: the template with the secrets
    :rtype: string
    """
    return template_without_secret.render(secret_dict)