wip - add directive callback
Add a directive to compile custom data