Before Peter Wilks's funeral in Chapter 27, Huck hides the bag of gold in the dead man's coffin (literally in the dead man's hands). Then, the undertaker arrives, and the funeral begins. The townspeople seem to be playing a part and acting like they think mourners should act. As Huck describes them, they "looked down at the dead man’s face a minute, and some dropped in a tear." The undertaker, who Huck describes as "the softest, glidingest, stealthiest man I ever see" arranges the ceremony and the people. Then, everyone hears a racket in the cellar, and the undertaker goes down to the cellar to quiet the dog who is making the noise. When he returns, he has to explain to the mourners that a rat was causing the dog to make noise, and Huck says, "You could see it was a great satisfaction to the people, because naturally they wanted to know."
The townspeople seem to be affecting sorrow but are not truly grieving. If they were, they wouldn't be so perfunctory in their show of grief, and they wouldn't pay so much attention to the howling dog and the undertaker's explanation that the dog had a rat. From this description, we can surmise that the townspeople are superficial and hypocritical, as they pretend to feel grief when they don't.