Add global context for template rendering