Hmm, I guess both? All the view code should be contained in the view. I guess.