Support for directive-style attachment via class names.