compile directive in the context of a directives