BREAKING: Allow to pass view to viewTemplate function