code: def template(self):
          
          if self._template:
              return self._template
  
          template_json = self.read_template(self.args.tmplname)
  
          self._template = loads(template_json)
          return self._template
docs: Returns the template in JSON form