Grasmere's original 17th-century school has provided inspiration for a new confectionery treat.