Skip to main content

parse_cook

Function parse_cook 

Source
pub fn parse_cook(content: &str, file_stem: &str) -> Result<Recipe, DomainError>
Expand description

Parse a .cook file’s content into a domain Recipe.

The original source is preserved in Recipe::raw_source so that user-authored files can be written back without data loss.

If the file lacks a title metadata key, the title is derived from file_stem (e.g., "chicken-adobo""Chicken Adobo").