code: func (f File) Run(rootPath string, data Data) error {
  	return chdir(rootPath, func() error {
  		if f.Should != nil && !f.Should(data) {
  			return nil
  		}
  
  		path, err := f.render(f.Path, data)
  		if err != nil {
  			return err
  		}
  
  		body, err := f.render(f.Template, data)
  		if err != nil {
  			return err
  		}
  
  		return f.save(rootPath, path, body)
  	})
  }
docs: // Run the generator