function readTemplate()

in scripts/inference-providers/scripts/generate.ts [155:166]


function readTemplate(
  templateName: string,
  namespace: string,
): Promise<string> {
  const templatePath = path.join(
    TEMPLATE_DIR,
    namespace,
    `${templateName}.handlebars`,
  );
  console.log(`   🔍 Reading ${templateName}.handlebars`);
  return fs.readFile(templatePath, { encoding: "utf-8" });
}