Add directive generator