def METHOD_NAME(text):
    """Parses a piece of text and returns a named tuple (text, variables).
    text is the template text, with lines starting with '-*- ' removed.
    variables is a dictionary containing variables read from lines starting
    with '-*- '.
    The syntax is as follows:
    -*- name: value; name1: value2; (etc)
    Names without value are also possible:
    -*- name;
    In that case the value is set to True.
    """
    lines = text.split('\n')
    start = 0
    while start < len(lines) and lines[start].startswith('-*- '):
        start += 1
    t = '\n'.join(lines[start:])
    d = dict(m.groups(True) for l in lines[:start] for m in _variables_re.finditer(l))
    return textvars(t, d)