code: func (uow *UnitOfWork) Generate(templateFile string, output string) {
  	templateFileParts := strings.Split(templateFile, "/")
  	templateName := templateFileParts[len(templateFileParts)-1]
  
  	tmpl, err := template.New(templateName).ParseFiles(templateFile)
  	if err != nil {
  		printErrorf("ERROR: %s\n", err)
  		return
  	}
  
  	executeTemplate := func(outputFile string, templateInfo interface{}) {
  		writer := os.Stdout
  		if len(outputFile) > 0 {
  			writer, _ = os.Create(outputFile)
  		}
  		err = tmpl.Execute(writer, templateInfo)
  		if err != nil {
  			printErrorf("ERROR: %s\n", err)
  		}
  	}
  
  	if strings.Contains(output, "%s") {
  		for _, container := range uow.TargetedInfo() {
  			executeTemplate(fmt.Sprintf(output, container.PrefixedName()), container)
  		}
  	} else {
  		tmplInfo := struct {
  			Containers []ContainerInfo
  		}{
  			Containers: uow.TargetedInfo(),
  		}
  		executeTemplate(output, tmplInfo)
  	}
  }
docs: // Generate files.