Green’s Dictionary of Slang

temple n.

1. a brothel.

[Scot] ‘Miss Adams’ in Ranger’s Impartial List of the Ladies of Pleasure in Edinburgh n.p.: This Lady keeps also a genteel Temple, and is extremely well calculated for her business.

2. the lavatory.

[US]B.H. Hall College Words (rev. edn) 455: temple. At Bowdoin College, a privy is thus designated.
[US]E.H. Babbitt ‘College Words and Phrases’ in DN II:i 66: temple, n. Water-closet.
[US]Monteleone Criminal Sl. (rev. edn).