Switch to context processor for custom template variables.