Added constant support to context

Hi, I was searching a way to not everytime pass a config data to my templates (basehref example). Hope constant support can help someone