restructure parsing, add pricedb support
This commit is contained in:
parent
89cbf282bd
commit
da38086e98
2 changed files with 224 additions and 89 deletions
|
@ -1,19 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>{{title}}</title>
|
||||
<title>{{recipe.title}}</title>
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css">
|
||||
<meta charset="utf-8">
|
||||
</head>
|
||||
<body>
|
||||
<h1>{{title}}</h1>
|
||||
<h1>{{recipe.title}}</h1>
|
||||
{% for part in recipe.parts %}
|
||||
<h2>Ingredients</h2>
|
||||
{% for ing in ingredients %}
|
||||
<li>{{ing.amount}} {{ing.unit}} {{ ing.name }}</li>
|
||||
{% for ing in part.ingredients %}
|
||||
<li>{{ing.amount}} {{ing.unit.name}} {{ ing.name }}</li>
|
||||
{% endfor %}
|
||||
<h2>Steps</h2>
|
||||
{% for step in steps %}
|
||||
{% for step in part.steps %}
|
||||
<li>{{ step }}</li>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue