create directive with placeholder code