Build a custom directive with arguments