'Compile the dynamic attributes of the given element into a list of
pairs (name, expression AST).'

def _compile_dynamic_attributes(self, el, options):

    nodes = []
    for (name, value) in el.attrib.iteritems():
        if name.startswith('t-attf-'):
            nodes.append((name[7:], self._compile_format(value)))
        elif name.startswith('t-att-'):
            nodes.append((name[6:], self._compile_expr(value)))
        elif (name == 't-att'):
            nodes.append(ast.Call(func=ast.Attribute(value=ast.Name(id='self', ctx=ast.Load()), attr='_get_dynamic_att', ctx=ast.Load()), args=[ast.Str(el.tag), self._compile_expr(value), ast.Name(id='options', ctx=ast.Load()), ast.Name(id='values', ctx=ast.Load())], keywords=[], starargs=None, kwargs=None))
    return nodes
