Thousands flee Sri Lanka fighting to temples, schools