Many of these libraries were attached to Buddhist temples .
Many of these libraries were contained valuable collections of palm leaf manuscripts and documents relating to Ayurveda , the Indian medical tradition adopted in ancient Sri Lanka .
Many of these libraries were attached to Buddhist temples and contained valuable collections of palm leaf manuscripts and documents relating to Ayurveda , the Indian medical tradition adopted in ancient Sri Lanka .