def METHOD_NAME(path, args):
    """Render a template at `path` with arguments `args`"""
    with open(path, "r", encoding="utf8") as f:
        data = f.read()
    tlp = mako.template.Template(text=data, filename=path)
    txt = tlp.render(**args)
    lines = map(lambda l: l.strip(), txt.splitlines())
    lines = filter(lambda l: l and not l.startswith("#"), lines)
    commands = map(shlex.split, lines)
    commands = map(brace_expand_line, commands)
    result = list(commands)
    return result