export const fillRecipeTemplate = (
  template: string,
  vars: { name?: string; n?: number }
): string =>
  template
    .replace(/\{name\}/g, vars.name ?? "")
    .replace(/\{n\}/g, vars.n !== undefined ? String(vars.n) : "");
