A novel and simple procedure to synthesize chitosan-graft-polycaprolactone in an ionic liquid.