[views] Fix #29 references are now given to the template as first level properties of the JSON object.