Expose Jinaj2 globals directive

This patch exposes the 'globals' directive for the Jinja2 wrapper.