Allow directives to be used as attributes