mixin class helper methods to a view.