{% extends "base.html" %} {% macro ingredientpart(ing) -%} {% if recipe.price != None %}{{price(ing.price)}} {%endif%}{{ing.amount|amountprint}} {{ing["unit"].name}} {{ ing.name }} {{ing.note}} {%- endmacro %} {% macro ingredient(ing) -%} {{ingredientpart(ing)}} {% if ing.alternatives|length != 0 %} {% for alting in ing.alternatives %} or {{ingredientpart(alting)}} {% endfor %} {% endif %} {%- endmacro %} {% macro getrecipe(rec) -%} {% for subrecipe in rec.subrecipes %} {{getrecipe(subrecipe)}} {% endfor %}

{{rec.title}}

{% if rec.ingredients|length != 0 %}

Ingredients

{% for ing in rec.ingredients %}
  • {{ingredient(ing)}}
  • {% endfor %} {% if rec.price != None %}price: {{price(rec.price)}}{%endif%} {% endif %} {% if rec.steps|length != 0 %}

    Steps

    {% for step in rec.steps %}
  • {{ step }}
  • {% endfor %} {% endif %}
    {%- endmacro %} {%block title%}{{recipe.title}}{%endblock%} {%block body %} back {{getrecipe(recipe)}} {%endblock%}