Religious doctrine is a basis for ordinance.
Several ordinanances revolve around churches and their doctrine.
The remenants of the old Blue laws for Sunday closings and no liquer sales.
As I said, religious beliefs or accommodation can drive the social contract resulting in various ordinaces. But religious beliefs cannot be the BASIS for social contract. In other words, city offices close down on Saturday and Sunday because that's when most of the religious folks in town have their Sabbath and it just makes sense to accommodate that since those are the days people will be less likely to need city services. They don't do it because it is the Sabbath Day and God commands us to keep it holy. They do it purely because most of the folks in town are less convenienced on those days because that is their Sabbath.
At least that was the original impetus behind it. And as society evolved, the blue laws looked sillier and sillier and were eventually done away with and weekends on Saturday and Sunday are now more custom than to accommodate the religious.
Social contract is for the comfort and efficiency of the community as a whole and the way that it implements life, liberty, and the pursuit of happiness. What is one town's cup of tea might not be the way the next town chooses to do it at all. And personally, I think that's okay.