Such a facility is called a dharamshala. It is characterized by spartanic (sometimes unclean and pest-ridden) furnishings and quiet and peaceful surroundings. There may be a school under the temple administration in the same locality dispensing Hindu teachings.
'Dharamshala' is essentially a Sanskrit/Hindi word. It is similar to the word 'madarsa' used by Muslims; 'madarsa' however, actually being an Islamic religious school where the holy Koran is taught.
etymology: Dharma = 'religion' + shaalaa = 'school'