techhat / openrecipeformat

Specs and Examples for the Open Recipe Format
Other
140 stars 29 forks source link

Divided Ingredients List #12

Open teusday opened 6 years ago

teusday commented 6 years ago

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?

techhat commented 6 years ago

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.

mainrs commented 6 years ago

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

michaelbogdan commented 5 years ago

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?

freddy2659 commented 4 years ago

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