Compare commits

..

No commits in common. "b8cc999ffd1efecd58cd4568e948296a9e9104eb" and "163f5cacab83f16830798a92441d60f1ff56a61e" have entirely different histories.

2 changed files with 4 additions and 12 deletions

View File

@ -52,5 +52,5 @@ if name:
filename = name.replace(" ", "_").lower()
with open(f"{filename}.json", 'w') as f:
f.write(json.dumps(recipe, indent=2))
f.write(json.dumps(recipe))

View File

@ -59,11 +59,9 @@ print("<!DOCTYPE html>")
print("<html lang='en'>")
print(f"<head><title>{recipe_name}</title>")
print("<link rel='stylesheet' type='text/css' href='style.css'>")
print("<meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1'>")
print("</head>")
print("<body>")
print("<header>")
print("<div id='title'>")
print(f"<h1>{recipe_name}</h1>")
print("</div>")
@ -71,19 +69,14 @@ print("</div>")
print("<div id='description'>")
print(f"<p>{recipe_desc}</p>")
print("</div>")
print("</header>")
print("<main>")
print("<div id='needs'>")
print("<h2>Needs</h2>")
print("<ul>")
for sub_recipe in sub_recipes:
for ingredient in sub_recipe.leaves:
if ingredient.description:
print(f" <li>{ingredient.name} -- {ingredient.description}</li>")
else:
print(f" <li>{ingredient.name}</li>")
print(f" <li>{ingredient.name}</li>")
print("</ul>")
print("</div>")
@ -99,9 +92,8 @@ for sub_recipe in sub_recipes:
print("</ol>")
print("</div>")
print("</main>")
print("<summary>")
print("<div id='tables'>")
print("<h2>Tabular Layout</h2>")
for sub_recipe in sub_recipes:
@ -124,7 +116,7 @@ for sub_recipe in sub_recipes:
print("</table>")
print("</p>")
print("</summary>")
print("</div>")
print("</body>")
print("</html>")