code: def add_template(self, tpl):
          
          tpl = self.index_template(tpl)
          self.templates[tpl.uuid] = tpl
docs: Add and index a template into the `templates` container.
  
          :param tpl: The template to add
          :type tpl: alignak.objects.item.Item
          :return: None