{% extends "base.html" %} {% macro ingredientpart(ing) -%} {% if recipe.price != None %}{{price(ing.price)}} {%endif%} {% if ing.amount != None %} {{ing.amount|amountprint}} {% if ing.unit != None %} {{ing.unit.name}}{% endif %} {%endif%} {{ ing.name }} {% if ing.note != "" %} {{ing.note}}{% endif %} {%- 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.description.html|safe}}
{%endif%} {% if rec.source != None %}source: {{rec.source.html|safe}}{%endif%} {% if rec.ingredients|length != 0 %}