Giri: "With the establishment of temples and the... ... Sabarimala Reference : Live Updates From Supreme Court 9-Judge Bench [Day 6]
Giri: "With the establishment of temples and the institution of Archakas, treatises on rituals were compiled and they are known as 'Agamas'. The authority of these Agamas is recognised in several decided cases and by this Court in Sri Venkataramana Devaru v. The State of Mysore. Agamas are described in the last case as treatises of ceremonial law dealing with such matters as the construction of temples, installation of idols therein and conduct of the worship of the deity.
There are 28 Aganias relating to the Saiva temples, the important of them being the Kamikagama, the Karanagama and the Suprabedagama. The Vaishnavas also had their own Agamas. Their principal Agamas were the Vikhanasa and the Pancharatra. The Agamas contain elaborate rules as to how the temple is to be constructed, where the principal deity is to be consecrated, and where the other Devatas are to be installed and where the several classes of worshippers are to stand and worship."