{% extends "base.html" %} {% macro ingredientpart(ing) -%} {{ing.amount|numprint}} {{ing.unit.name}} {{ ing.name }} {%- endmacro %} {% macro ingredient(ing) -%} {{ingredientpart(ing)}} {% if ing.alternatives|length != 0 %} {% for alting in ing.alternatives %} or {{ingredientpart(alting)}} {% endfor %} {% endif %} {%- endmacro %} {%block title%}{{recipe.title}}{%endblock%} {%block body %} back

{{recipe.title}}

{% for subrecipe in recipe.subrecipes %} {% if recipe.subrecipes|length != 1 %}

{{subrecipe.title}}

{% endif %}

Ingredients

{% for ing in subrecipe.ingredients %}
  • {{ingredient(ing)}}
  • {% endfor %}

    Steps

    {% for step in subrecipe.steps %}
  • {{ step }}
  • {% endfor %}
    {% endfor %} {%endblock%}