How did the "temple fair" come about? Where was the first temple fair held? Please help!

The following is the network information said very detailed for reference Mention of the temple fair in ancient China, people will be associated with the "temple", that the temple is the temple of the Taoist temple. As the name suggests, the temple fair is a gathering near the temple, to worship God, entertainment and shopping activities. Temple fairs are also known as "temple markets" or "festival grounds". These names can be said to be the historical "track" left in the formation of the temple fair. As the formation of a social custom, there are profound social and historical reasons, and the temple fair customs and Buddhist monasteries and Taoist temples have a close relationship with the religious activities of the temple, while it is accompanied by the development of folk beliefs, improve and popularize the activities. Shanghai Rhetoric Publishing House, 1980 edition of the "Dictionary" explained: "Temple fair is also known as 'temple market'. One of the forms of Chinese marketplace. Already existed in the Tang Dynasty. Held on temple festivals or specified dates. Generally located in or near the temple, so called 'temple fair'. The Beiping Customs and Traditions - Bazaar, cited in Myohyangru Congxue: 'At Longfu Temple in the capital, on the ninth day of each month, a collection of goods is held, which is known as the Temple Fair.' This form of bazaar left over from history is still utilized in some areas after liberation, and has a certain role in exchanging urban and rural materials and meeting people's needs." Early temple fair is only a grand ritual activities, with the development of the economy and the need for people to communicate, the temple fair will be in the maintenance of ritual activities at the same time, and gradually integrated into the bazaar trading activities. At this time, the temple fair is also named "temple market", an important form of Chinese market. With the needs of the people, and in the temple fair to increase entertainment activities. So the New Year's temple fair has become an indispensable content of the New Year. But the specific content of the temple fair in various regions is slightly different, each with its own characteristics. Wei Jin and North and South Dynasties, the rise of Buddhism and Taoism, the increasingly frequent exchange of goods, temples for commercial activities provide business opportunities, the temple fair began. Temple fair by the ritual activities and the emergence of entertainment for the public and the development of the exchange of goods and flourish. Nowadays, temple fairs have become an essential folklore during the Spring Festival, and in many places, temple fairs, different from the traditional temple in the past, have been changed to be held in parks and squares and other open areas, mainly for cultural, trade and entertainment activities, religious activities have been very few. Traditional Weddings at Temple FairsThe temple fair is a traditional form of festival in China, reflecting the psychology and habits of the people. Its origin can be traced all the way back to the ancient social festival. During the Zhou Dynasty, the king set up a society for the group of surnames, called Taisha, and set up a society for himself, called the king's society. Lords and lords for the people to set up a society, known as the national society, since the establishment of the society, known as the Hou society. The twenty-five families of the people for the Li, Li each set up a society, known as the people's society or Li society. And the community God is the God of the land, the spiritual pillar of the community for the people to pray to the community God for good weather, we have to carry out social sacrifices. Social sacrifice to have dance and music. Zhouli - Chunguan ":" if the music six changes, the sky god are descending, can get and ritual carry on; if the music eight changes, the ground show (with the god, the land god) are out, can get and ritual carry on; if the music nine changes, the ghosts and people can get and ritual carry on." It can be seen that since ancient times, dance and music have always been missing when offering sacrifices to the gods. This is undoubtedly a profound influence on the later generations of temple fairs on the activities of sacrificing to the gods, entertaining the gods and even entertaining people. Therefore, the social festival is the main source of Chinese temple fairs. Secondly, because of the role of the temple fair in gathering people, the temple fair is also known as the "temple market". Legend has it that in the era of the Yellow Emperor, "the market was held in the middle of the day". Zuozhuan - Xi Gong 33 years" records: "Zheng merchants string high will be marketed in the week." Some people speculate that there was already a "temple market" during the Spring and Autumn period, at least during the Northern and Southern Dynasties, the temple and the market have been linked. Although the relationship between the temple and the market at this time is not yet close, its hair toughened merit is not disputed. Buddhism began to spread to China during the Eastern Han Dynasty. At the same time, this period of Taoism also gradually formed. They launched a fierce competition for survival with each other, in the North and South Dynasties, each stood firm. In the Tang and Song dynasties, they reached their heyday, with a wide range of religious activities. Such as Christmas celebrations, jiaojiao fasting, water and land dojo and so on. The focus of competition between Buddhism and Taoism, one is the construction of temples and Taoist temples. The second is to fight for believers, recruiting the masses. For this reason, in their religious ceremonies are added to the entertainment content of the crowd, such as dance, drama, patrol and so on. In this way, not only the good men and women of the faith, happy, and many ordinary people are also willing to follow the fun. In order to win the masses, Buddhism and Taoism often use the way out of the temple to expand their influence. Buddhism in the Northern Wei Dynasty prevailed in the "line like" activities is so. The original belongs to the folk beliefs of the newspaper race to pay God's activities, have with the combination of Buddhist and Taoist deities. Its activities also by the countryside community gradually transferred to the Buddhist temple and Taoist temple. In the Buddha, Taoism and two religions held a variety of festivals and celebrations, the folk community, will also take the initiative to go to the rally. In this way, temples and Taoist temples gradually became places for mass gatherings based on religious activities. And these religious activities are gradually secularized, that is to say, more by the folk masses to negotiate organized. This change not only greatly increased the attractiveness and liveliness of these activities, but also increased the commercial flavor of these activities as the mass and recreational nature of these activities were strengthened. With the full assistance of the religious and social sectors, the temple fair activities were further developed. Although the temple fair in this period, whether from its number or scale, in the country has formed a spectacular situation, but the content of the temple fair activities, is still favored by the gods of the race, and in the folk business trade is relatively weak. The temple fair really stereotypes, perfect is in the Ming and Qing Dynasties to modern times. Chinese temple fairs were born from the ancient serious temple rituals and social festivals and folk beliefs. During the Han, Tang and Song Dynasties, the religious beliefs and entertainment forms of Buddhism and Taoism were added, especially after the further improvement and development of the Ming and Qing Dynasties, highlighting the function of commerce and trade, thus becoming an important part of people's economic life, spiritual life and cultural life. The ancient folk temple fair is a special form of society, the earliest form of temple fair is a grand ritual activity, is a product of people worshiping the gods and spirits, and delighting the body and mind. With the development of society, especially the development of the economy, the temple fair and market trading into one, and become a comprehensive social activities of people to worship the gods, exchange feelings and trade transactions. In the long ancient society, the temple fair and reverence for God is one. Until the Shang and Zhou Dynasties, the temple fair is an unconscious activity. After the Han Dynasty, the temple fair was transformed to diversification. The main nature of temple fairs in the Han Dynasty changed because of the introduction of Buddhist culture. From then on, Buddhist culture came to the land of Central China like a torrential flood. Accompanied by the spread of Buddhist teachings, Buddhist temples were scattered everywhere. The Buddhist temples were scattered in the famous mountains, giant towns and small towns in the Central Plains. Many famous temples such as the Luoyang White Horse Temple, Kaifeng Xiangguo Temple, Dengfeng Shaolin Temple, Linru Wind Cave Temple, Zhenping Bodhi Temple, Stone Buddha Temple and Wagong Temple, Xinyang Lingyin Temple, Guangshan Jingshui Temple, Anyang Gaoge Temple, Jiyuan Pangu Temple, Huixian Baiyun Temple, RuNan XiaoNanHai, YongCheng ChongFa Temple, XuChang civilization Temple, XiangCheng GaoQiu Temple, etc., such as the rain springs up, forests of Central Plains, and left a lot of magic legend. Thus, Chongfo temple fair came into being, Linlin. In the vast temple fair group in the Central Plains, Buddhism and Taoism or separate, or mutual penetration, so that the temple culture is richer. High economic development in the Tang and Song dynasties, the Central Plains region leads the country and maintains a central position. Taoist culture flourished more rapidly through the advocacy of the emperors. Taoist culture is a powerful culture on this, temples, platforms, ancestral halls, palaces, guan, nunneries and other Taoist buildings in the Central Plains is very dense distribution. For example, Dengfeng Zhongyue Temple, Luoyang Guanlin Temple, Tongbai Huaidu Temple, Jiyuan Jidu Temple, Tangyin Wenwang Temple, Luoyang Zhougong Temple, Neixiang Wenmiao Temple, Zhunyang Renzu Temple, Xihua Nuwa Temple, Shangqiu Xiongnu Terrace, Luyi Taiqingguan and Laojun Terrace, Junxian Bixia Palace, Jiyuan Wangwushan Fenxian Guan and Yangtai Palace, etc., and all over the world, there are Dragon King Temples, Heavenly Masters Temples, Ancestors Temples, Nyongniang Temples, Fire Temples, Land Temples, City God Temples, Guanwang Temples, and Mountain God Temples, River God Temple, Yu Wang Temple, Holy Mother Temple, Erlang God Temple, Taishan Temple, Bug King Temple, and countless others. These temples laid the foundation for the development of temple fairs in the future. Especially in the Northern Song Dynasty, the Central Plains once appeared a great economic and cultural prosperity, with Kaifeng, Tokyo, as the center of the rapid economic development of the town, the temple fair also rose. The Ming Dynasty is a large area of the Central Plains temple fair group flourished in an important turning point. Rapid economic development, so that in Luoyang, Liyang (Joon County), Chenzhou (Huaiyang) and other large-scale towns, large-scale construction, building temples became possible. The prosperity of handicrafts in the Ming Dynasty stimulated the development of productive forces, also promoted the development of economic and cultural development, the emergence of the bud of capitalism, temple fair in this context than in any previous period are more dense. The temple fair in the Ming Dynasty had an important feature, that is, "guilds" or called "guild hall", "public office" of a large number of the rise, so that the temple fair more orderly. The Central Plains appeared many "Shan-Shaanxi Association", they worship Guan Yu, set up shrines and temples, especially the construction of theaters and other places of worship, so that the impact of the temple fair and the role of further expansion. The temple fair group and the relationship between myths and legends is extremely close. Primitive myths mainly reflect the life of clan societies in the Central Plains, including the origin of heaven and earth, the birth of mankind, cultural development and totem worship. The Xihua Nuwa City Temple Fair, the Quasi-Yang Taihao Mausoleum Temple Fair, the Shangqiu Xiongnuotai Temple Fair, and the Tongbai Pangu Temple Fair are places where primitive myths are centrally circulated, and they can almost constitute the history of the development of early human society.