Add a directive to compile custom data