{% 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.title}}

{% if rec.description != None %}

{{rec.description.html|safe}}

{%endif%} {% if rec.source != None %}source: {{rec.source.html|safe}}{%endif%} {% 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.stepsections|length != 0 %}

    Steps

    {% for stepsection in rec.stepsections %} {% if stepsection.title != "default" %}

    {{stepsection.title}}

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