 According to the work of Dharampal, based on British documents from the early 1800s, pre-British education in India was fairly universal.Dharampal explains that the temple and the mosque of each village had a school attached to it and the children of all castes and communities attended these schools.In the colonial era, the community-funded gurukul system and temple-based charity education, began to decline as the centrally funded institutions promoted by the British began to gradually take over and the British budget for education of the entire country was less than half of the budget for the city of New York at the time.