Use generator to create directive, placed in components/directives