From 65e22291ea2d4b00b57de8ef1a49c0f970984080 Mon Sep 17 00:00:00 2001 From: Lynne Date: Sun, 1 Mar 2020 18:49:48 +1000 Subject: [PATCH] add support for 'to taste' specifier as recommended by peebus =u= --- README.md | 2 +- _includes/ingredients.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a2d26fc..cda824a 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ time: 240 - `name` (string) - The displayed name of the recipe. Does not appear in the URL. - `author` (string, optional) - The author of the recipe. - `ingredients` (list) - Each entry in `ingredients` is an array consisting of up to four items: - - amount (number or array) - The amount of this item to add, e.g. `2` for 2 cups of flour. If this in an array, it will be printed as `amount[0] to amount[1]`. For example, if you wanted to say "2 to 3 cups of peas", you would write `[[2, 3], peas, cups]`. + - amount (number or array) - The amount of this item to add, e.g. `2` for 2 cups of flour. If this is `0`, the output will be e.g. "jalepeño chillis to taste" rather than "0 jalepeño chillis". If this in an array, it will be printed as `amount[0] to amount[1]`. For example, if you wanted to say "2 to 3 cups of peas", you would write `[[2, 3], peas, cups]`. - ingredient name (string) - The name of the ingredient, e.g. `flour` for 2 cups of flour. - unit terminology (string, optional) - The unit that amount refers to, e.g. `cups` for 2 cups of flour. If left blank or null, as in `[1, egg]`, the output will simply be "1 egg". - optional (boolean, optional) - Whether or not this ingredient is optional. The ingredient `[1, chocolate egg, null, true]` produces "1 chocolate egg" and marks is as optional. Defaults to `false`. diff --git a/_includes/ingredients.html b/_includes/ingredients.html index f7e174f..c9f2acc 100644 --- a/_includes/ingredients.html +++ b/_includes/ingredients.html @@ -5,6 +5,6 @@ <{{tag}}>Ingredients