logo

Grimgrains

Unnamed repository; edit this file 'description' to name the repository.
commit: f0d609e0b18a2ac22311d283044d526968b6bd1e
parent d99bfa27f68259248fa5240de340df2c793045b9
Author: neauoire <aliceffekt@gmail.com>
Date:   Thu, 19 Dec 2019 15:25:46 -0500

Progress on new site builder

Diffstat:

Msource/main.c2+-
Msource/recipe.c4++++
Msource/recipes.c117++++++++++++++++++++++++++++++++++++++++++++++++++-----------------------------
3 files changed, 79 insertions(+), 44 deletions(-)

diff --git a/source/main.c b/source/main.c @@ -8,7 +8,7 @@ int main(void) { #include "ingredients.c" #include "recipes.c" - print_recipe(rice_treat); + print_recipe(sweet_sour_lentils); return (0); } \ No newline at end of file diff --git a/source/recipe.c b/source/recipe.c @@ -35,6 +35,10 @@ void add_recipe_serving(Recipe *r, Ingredient *i, char *quantity){ r->servings_len++; } +void add_recipe_part(Recipe *r, Part *p) { + +} + void print_recipe(Recipe recipe) { printf("name:%s, portions:%s date:%d time:%d\n",recipe.name,recipe.portions,recipe.date,recipe.time); printf("===========\nInstructions:\n"); diff --git a/source/recipes.c b/source/recipes.c @@ -1,51 +1,82 @@ -Recipe rice_treat = create_recipe("sesame puffed rice treat","12 servings",20161207,60); +Recipe sweet_sour_lentils = create_recipe("sweet and sour lentils","2 servings",20190602,30); +add_recipe_description(&sweet_sour_lentils, "In my galley I have a few recipes that I consider staples, that I'm always in the mood to eat. I usually rotate these throughout the week, adding maybe a new recipe or two to change things up. This sweet and sour lentils recipe is one of these, a favourite of ours."); -add_recipe_description(&rice_treat, "<p>A simple and fun dessert, using two of my favorite ingredients, {{kinako}} and {{black sesame seeds}}. Both of these ingredients lend themselves well to sweets, with a complex nutty taste.</p><p>Kinako is roasted soybean flour. It is often used to coat confectionaries in Japan. It's a healthy topping and flavouring which contains B vitamins and protein.</p>"); +RecipePart sweet_sour_lentils_sauce = create_recipe_part(&sweet_sour_lentils,"sauce"); +add_part_instruction(&sweet_sour_lentils_sauce,"Mix all liquid ingredients together in a bowl, add {_1 tbsp_} of {{peanut butter}} and stir until dissolved."); +add_part_instruction(&sweet_sour_lentils_sauce,"Stir in {_1 tbsp_} of {{arrowroot starch}} (to help thicken sauce)."); +add_part_instruction(&sweet_sour_lentils_sauce,"Add {_2 tsp_} of {{chili pepper flakes}}, {_3_} minced {{garlic cloves}} and roughly {_1 inch_} of minced {{ginger root}}."); +add_part_serving(&sweet_sour_lentils_sauce, &soy_sauce, "2 tbsp"); +add_part_serving(&sweet_sour_lentils_sauce, &japanese_rice_vinegar, "2 tbsp"); +add_part_serving(&sweet_sour_lentils_sauce, &chili_pepper_flakes, "2 tsp"); +add_part_serving(&sweet_sour_lentils_sauce, &peanut_butter, "1 tbsp"); +add_part_serving(&sweet_sour_lentils_sauce, &maple_syrup, "2 tbsp"); +add_part_serving(&sweet_sour_lentils_sauce, &sesame_oil, "1 tsp"); +add_part_serving(&sweet_sour_lentils_sauce, &garlic, "3 cloves, minced"); +add_part_serving(&sweet_sour_lentils_sauce, &ginger_root, "1 root minced"); +add_part_serving(&sweet_sour_lentils_sauce, &arrowroot_starch, "1 tbsp"); -add_recipe_instruction(&rice_treat, "Bring a pan to medium heat, and add {_1/3 cup_} of {{black sesame seeds}}. Toast until fragrant, you'll know they're ready because they'll start popping and crackling. Remove from heat, and let cool. "); -add_recipe_instruction(&rice_treat, "Grind the toasted sesame seeds with a mortar and pestle, or your pulverizer of choice."); -add_recipe_instruction(&rice_treat, "Heat a {_1/4 cup_} of {{coconut oil}} in a pot at medium heat until fully melted, then stir in {_1/2 cup_} of {{brown rice syrup}} and the ground sesame seeds. Cook for {#5 minutes#}, stirring all the while."); -add_recipe_instruction(&rice_treat, "Remove from heat, stir in {_1/4 tsp_} of {{salt}}, then add {_4 cups_} of {{puffed rice}} cereal and mix well. Transfer to a greased square baking dish (8x8 pyrex dish is fine) and pack it down using a spatula. You can also overlay a sheet of parchment paper and to push down with your hands. "); -add_recipe_instruction(&rice_treat, "Refrigerate for {#1 hour#}."); -add_recipe_instruction(&rice_treat, "Sprinkle {_1/4 cup_} of {{kinako flour}} over the rice crispy treats and cut into squares."); +// RecipePart sweet_sour_lentils_main = create_recipe_part(&sweet_sour_lentils,"main"); +// add_part_instruction(&sweet_sour_lentils_main, "Rinse lentils. Transfer rinsed lentils to a pot and add {_1 1/2 cups_} of {{vegetable bouillon}}."); +// add_part_instruction(&sweet_sour_lentils_main, "Bring water to a rapid simmer, then reduce heat to medium."); +// add_part_instruction(&sweet_sour_lentils_main, "Simmer uncovered. After {#10 minutes#} add {_1_} cubed {{carrot}} and {_2 inches_} of cubed {{daikon}}."); +// add_part_instruction(&sweet_sour_lentils_main, "Let mixture simmer for an additional {#10-20 minutes#}, add extra water as needed."); +// add_part_instruction(&sweet_sour_lentils_main, "If lentils are tender, they are ready. Strain lentils and return to pot with {_1/4 tsp_} of {{salt}}."); +// add_part_instruction(&sweet_sour_lentils_main, "Pour sauce onto lentils, mix well. Serve into two bowls with some {{chives}}. Eat wrapped in salad or cabbage leaves, or with {{crackers}}."); +// add_part_serving(&sweet_sour_lentils_main, &brown_lentils, "1/2 cup"); +// add_part_serving(&sweet_sour_lentils_main, &vegetable_bouillon, "1 1/2 cups"); +// add_part_serving(&sweet_sour_lentils_main, &carrots, "1, cubed"); +// add_part_serving(&sweet_sour_lentils_main, &daikon, "2 cubed"); +// add_part_serving(&sweet_sour_lentils_main, &chives, "3 stalks"); +// add_part_serving(&sweet_sour_lentils_main, &salt, "1/4 tsp"); -add_recipe_serving(&rice_treat, &black_sesame_seeds, "1/3 cup"); -add_recipe_serving(&rice_treat, &coconut_oil, "1/4 cup"); -add_recipe_serving(&rice_treat, &brown_rice_syrup, "1/2 cup"); -add_recipe_serving(&rice_treat, &puffed_rice, ": 4 cups"); -add_recipe_serving(&rice_treat, &kinako, "1/4 cup"); -add_recipe_serving(&rice_treat, &salt, "1/4 tsp"); +/* +SWEET AND SOUR LENTILS + DATE : 2019-06-02 + TAGS + dinner + TIME : 30 + SERV : 2 servings + DESC + & In my galley I have a few recipes that I consider staples, that I'm always in the mood to eat. I usually rotate these throughout the week, adding maybe a new recipe or two to change things up. This sweet and sour lentils recipe is one of these, a favourite of ours. + & You can eat the lentils as is, or scoop it up with crackers. Devine & I enjoy eating it wrapped in salad or cabbage leaves. + & We've cooked sweet and sour lentils often on long passages, it's a simple one-pot meal. It's also my go-to recipe during pot lucks - even people who don't like lentils will enjoy it (I've never had any complaints, not yet). + & {*Substitutions*} + & It's a versatile recipe, so if I don't have any carrots or daikon I'll sometimes put brocoli or fresh green peas instead. For a heartier meal, adding sweet potatoes is also delicious. Sometimes, if I'm out of peanut butter I'll use tahini instead, the flavour is very similar and doesn't change much in the recipe (also nice for those with peanut allergies). This recipe only works with whole lentils, because there's still a bite to them, halved lentils will soften too much and the resulting texture won't be as pleasant. + & Enjoy this humble, but delicious recipe. + % recipes/sweet.and.sour.lentils.2.jpg + INST + SAUCE + - Mix all liquid ingredients together in a bowl, add {_1 tbsp_} of {{peanut butter}} and stir until dissolved. + - Stir in {_1 tbsp_} of {{arrowroot starch}} (to help thicken sauce). + - Add {_2 tsp_} of {{chili pepper flakes}}, {_3_} minced {{garlic cloves}} and roughly {_1 inch_} of minced {{ginger root}}. + LENTILS + - Rinse lentils. Transfer rinsed lentils to a pot and add {_1 1/2 cups_} of {{vegetable bouillon}}. + - Bring water to a rapid simmer, then reduce heat to medium. + - Simmer uncovered. After {#10 minutes#} add {_1_} cubed {{carrot}} and {_2 inches_} of cubed {{daikon}}. + - Let mixture simmer for an additional {#10-20 minutes#}, add extra water as needed. + - If lentils are tender, they are ready. Strain lentils and return to pot with {_1/4 tsp_} of {{salt}}. + - Pour sauce onto lentils, mix well. Serve into two bowls with some {{chives}}. Eat wrapped in salad or cabbage leaves, or with {{crackers}}. + INGR + Main + Brown lentils : 1/2 cup + Vegetable bouillon : 1 1/2 cups + Carrots : 1, cubed + Daikon : 2", cubed + Chives : 3 stalks + Salt : 1/4 tsp + Sauce + Soy sauce : 2 tbsp + Japanese rice vinegar : 2 tbsp + Chili pepper flakes : 2 tsp + Peanut butter : 1 tbsp + Maple syrup : 2 tbsp + Sesame oil : 1 tsp + Garlic : 3 cloves, minced + Ginger root : 1", minced + Arrowroot starch : 1 tbsp -// SESAME PUFFED RICE TREAT -// DATE : 2016-12-07 -// TAGS -// dessert -// TIME : 60 -// SERV : 12 servings -// DESC -// & A simple and fun dessert, using two of my favorite ingredients, {{kinako}} and {{black sesame seeds}}. Both of these ingredients lend themselves well to sweets, with a complex nutty taste. -// & Kinako is roasted soybean flour. It is often used to coat confectionaries in Japan. It's a healthy topping and flavouring which contains B vitamins and protein. -// INST -// Preparation -// - Bring a pan to medium heat, and add {_1/3 cup_} of {{black sesame seeds}}. Toast until fragrant, you'll know they're ready because they'll start popping and crackling. Remove from heat, and let cool. -// - Grind the toasted sesame seeds with a mortar and pestle, or your pulverizer of choice. -// - Heat a {_1/4 cup_} of {{coconut oil}} in a pot at medium heat until fully melted, then stir in {_1/2 cup_} of {{brown rice syrup}} and the ground sesame seeds. Cook for {#5 minutes#}, stirring all the while. -// - Remove from heat, stir in {_1/4 tsp_} of {{salt}}, then add {_4 cups_} of {{puffed rice}} cereal and mix well. Transfer to a greased square baking dish (8x8 pyrex dish is fine) and pack it down using a spatula. You can also overlay a sheet of parchment paper and to push down with your hands. -// - Refrigerate for {#1 hour#}. -// - Sprinkle {_1/4 cup_} of {{kinako flour}} over the rice crispy treats and cut into squares. -// INGR -// Main -// Black sesame seeds : 1/3 cup -// Coconut oil : 1/4 cup -// Brown Rice Syrup : 1/2 cup -// Puffed Rice : 4 cups -// Kinako : 1/4 cup -// Salt : 1/4 tsp - - - -// add_serving(&cake,&pepper,"1tbs"); +*/ // Recipe *recipes[] = {&rice_treat}; \ No newline at end of file