def METHOD_NAME(template, nl=True, **kwargs):
    """Render and display a template.
    Giving the name of a template with the parameter `template`,
    this function will locate and render it using the arguments
    passed as keywords.
    :param template: name of the template
    :param nl: if set to `True`, it renders a newline afterwards
    :param kwargs: list of attributes required to render the template
    """
    templates_dir = os.path.join(os.path.abspath(os.path.dirname(__file__)),
                                 "templates")
    loader = jinja2.FileSystemLoader(templates_dir)
    env = jinja2.Environment(loader=loader,
                             lstrip_blocks=True, trim_blocks=True)
    t = env.get_template(template)
    s = t.render(**kwargs)
    click.echo(s, nl=nl)