'Compile the given element, following the directives given in the
iterator ``options[\'iter_directives\']``.
:return: list of AST nodes'

def _compile_directives(self, el, options):

    for directive in options['iter_directives']:
        if (('t-' + directive) in el.attrib):
            mname = directive.replace('-', '_')
            compile_handler = getattr(self, ('_compile_directive_%s' % mname), None)
            interpret_handler = ('render_tag_%s' % mname)
            if hasattr(self, interpret_handler):
                _logger.warning("Directive    '%s'    must    be    AST-compiled.    Dynamic    interpreter    %s    will    ignored", mname, interpret_handler)
            return compile_handler(el, options)
    if any((att.startswith('t-') for att in el.attrib)):
        raise ('Unknown    directive    on    %s' % ("',    '".join(directives), etree.tostring(el)))
    return []
