Added support for grains/pillar in Jinja template namespace