Initial commit

This commit is contained in:
2025-11-11 02:44:31 +00:00
parent 57805177b9
commit b0ffd95a41
23 changed files with 528 additions and 2 deletions

10
reports/cost.md.jinja Normal file
View File

@@ -0,0 +1,10 @@
# Cost Report
{% set ns = namespace() %}
{%- set ns.total = 0 %}
{%- for ingredient in ingredients %}
{%- set price = db(ingredient.name ~ '.shopping.price_per_unit') * (ingredient.quantity.value | float) %}
* {{ ingredient.name }}: {{ price | number_to_currency }}
{%- set ns.total = ns.total + price %}
{%- endfor %}
Total: ${{ ns.total | format_price }}

View File

@@ -0,0 +1,9 @@
{{ metadata }}
Scale: {{ scale }}x
## Ingredients
{%- for ingredient in ingredients %}
- {{ ingredient.name }} {{ ingredient.quantity }}
{%- endfor %}

View File

@@ -0,0 +1,13 @@
**Servings:** {{ metadata.servings }}
## Ingredients
{%- for ingredient in ingredients %}
- {{ ingredient.quantity }} {{ ingredient.unit }} {{ ingredient.name }}
{%- endfor %}
## Instructions
{% for section in sections %}
{% for content in section %}
{{ content }}
{%- endfor %}
{%- endfor %}