Buddhist doctrine may not have a dress code to a place of worship but it is our obligation to visit such places ,
attire in a descent dress that does not reveal much of our body parts.
Temple is a public place where people go for their spiritual practices and they want to feel tranquil in mind as part of their rituals,what ever they practice individually.
For tourist temples are a place to visit out of curiosity,not for worship.Such tourist,should be allowed to borrow a cloth to wrap their waists for the sake of decency.