Replies: 2 comments 1 reply
-
Thanks for idea @tobei. This will be definitely good addition to the language. |
Beta Was this translation helpful? Give feedback.
-
I think this would be very useful - I really like recipes that can be cooked with a range of different ingredients, for example a fruit pudding recipe that can be made with blackberries, blueberries or apples. A syntax I think could work for this is separating the ingredients with a pipe symbol in a similar way to bitwise-OR operators in many languages etc and also very similar to what has been proposed here #50 (comment) :
Optionally a quick shorthand could also be added - useful when the quantities etc are the same for each option:
If an empty ingredient was used, the ingredient could be marked as optional, which covers #50:
For completeness I would suggest the same syntax be added to utensils:
In terms of shopping lists, I would suggest that the first ingredient that is found in the shopping list config file be used - this supports the use cases of dietary requirements (specify only the things you can eat in the config file) and store availability. Stretching further, I think it could become a part of a variants system, where one recipe can be cooked in several ways. I will add a separate discussion for that though. If you'd like a PR for this, let me know and I'll see what I can do :) |
Beta Was this translation helpful? Give feedback.
-
Some ingredients can be hard to find or unsuitable for some diet (maybe two separate usecases). Having a syntax to mark an ingredient as optional or suggesting alternative ingredient that can be substitued because they have similar taste, or vegan alternative, or not so important in the recipe could be useful.
That way the original recipe could feature all the original ingredients (e.g. Tabasco), but could feature a more general alternative as Spicy Sauce if Tabasco can't be found, or for baking 10g fresh yeast could have a 5g dry yeast alternative if fresh yeast isn't available.
Beta Was this translation helpful? Give feedback.
All reactions