openrecipeformat icon indicating copy to clipboard operation
openrecipeformat copied to clipboard

Divided Ingredients List

Open teusday opened this issue 7 years ago • 4 comments

In the documentation, I don't see anything about segmenting ingredients lists, which many recipes have.

For example, if I were making a frosted cake, I might have:

CAKE:
1 box cake mix
1 egg

FROSTING:
1 can store-bought frosting

Could this be implemented?

teusday avatar Apr 19 '18 19:04 teusday

For this sort of thing, each individual sub-recipe would be defined as their own recipe, and then those recipes would be listed as ingredients in the main recipe. How they are displayed to the user would depend upon the rendering engine used.

techhat avatar Apr 21 '18 15:04 techhat

How do you list sub recipes? I couldn't find any examples that showcase this.

mainrs avatar Oct 09 '18 03:10 mainrs

ORF doesn't specify how to hook together sub-recipes to one larger recipe and doesn't provide any examples wither. Which is a shame, as many many recipes do have the form of RECIPE = [BASE + INDIVIDUAL], where BASE is a run-of-the-mill recipe with no need for repetition in data or sometimes even presentation.

Could you provide an explicit example of how to hook together two or more recipes?

michaelbogdan avatar Oct 17 '19 23:10 michaelbogdan

I'd used the X- field, maybe X-subrecipe? In the end it would be up to the implementing program how to handle it.

freddy2659 avatar Apr 27 '20 01:04 freddy2659