1
enrolling in a temple school;child enrolled in a temple school
See also:
寺子屋 (てらこや)
2
incarcerating a criminal in a temple as a form of punishment (popular during the latter Muromachi and Azuchi-Momoyama periods)
3
going to a temple to repent