Added generation of json views of templates.