def generate_rendered_template(jinja_environment, template_filename, **kwargs):
    """Returns rendered template
    args:
    jinja_environment: Jinja2 Parser from get_jinja_parser
    template_filename: Path to template that will be used
    kwargs: Keyword arguments containing the fields on `template_filename` and
        the values to be processed
    """
    return jinja_environment.get_template(template_filename).render(kwargs)