Using instance variables to affect the view templates, and using before filters.