Added View::globals method for adding global variables to templates