Add global variables when render template