def METHOD_NAME(self, recipe: Recipe, j2_template: str | None = None) -> Path:
    """
    Renders a Jinja2 Template in a temporary directory and returns
    the path to the file.
    """
    self.__check_temp(self.METHOD_NAME)
    if j2_template is None:
        raise ValueError("Template must be provided for method _render_jinja2")
    j2_path: Path = self.directories.TEMPLATE_DIR / j2_template
    if not j2_path.is_file():
        raise FileNotFoundError(f"Template '{j2_path}' not found.")
    with open(j2_path) as f:
        template_text = f.read()
    template = Template(template_text)
    rendered_text = template.render(recipe=recipe.dict(by_alias=True))
    save_name = f"{recipe.slug}{j2_path.suffix}"
    if self.temp is None:
        raise ValueError("Temporary directory must be provided for method _render_jinja2")
    save_path = self.temp.joinpath(save_name)
    with open(save_path, "w") as f:
        f.write(rendered_text)
    return save_path