edit-in-place directive with template dispatcher