docs: function generate(targetPath, args) {
    if (
      !args.template &&
      (!args.templateFile || (args.templateFile && !vio.fileExists(args.templateFile)))
    ) {
      const err = new Error(`No template file found: ${args.templateFile}`);
      err.code = 'TEMPLATE_FILE_NOT_FOUND';
      throw err;
    }
    const tpl = args.template || vio.getContent(args.templateFile);
    const compiled = _.template(tpl, args.templateOptions || {});
    const result = compiled(args.context || {});
  
    vio.save(targetPath, result);
  }