Add ProfileBase trait for loading global vars to templates