code: def build(template_directories):
      
      template = load_template(template_directories[0])
      for directory in template_directories[1:]:
          template.update(load_template(directory))
      return template
docs: Build a template from the source template directories.
  
      :param template_directories: source template directories
      :return: template workflow