In many Buddhist temples, it is a tradition to offer vegetarian meals called “ordination-style” or “monastic-style” food (Chinese: ; pinyin: zhāi fàn) as an offering to monks and nuns who have taken vows of poverty. In some cases, this food may be served for free in the temple’s dining hall.
However, it is not always possible or desirable to eat without paying a small donation or making a monetary contribution towards the upkeep of the temple. The specific rules and etiquette surrounding communal meals (斋饭) can vary depending on the temple and its traditions.
If you are interested in eating at a Buddhist temple, I recommend checking with the administration beforehand to confirm their policies regarding visitors’ meals.