{%- for prt in child.servings.blocks -%}
{{- '\n ' -}}
Portionsgröße: Für {{ prt.serving_number | default('1') }}
{{- ' ' -}}
{%- if prt.serving_units is defined and prt.serving_units != "" -%}
{{- prt.serving_units -}}
{%- else -%}
Stück
{%- endif -%}
{%- set prt_loop = loop.index -%}
{%- if child.ingredients is defined and child.ingredients != "" %}
{%- if child.ingredients.blocks != [] -%}
{{- '\n ' -}}
{%- for ing in child.ingredients.blocks %}
{%- if ing.ingredient is defined and ing.ingredient != "" -%}
{%- if ing.amounts is defined and ing.amounts != "" and ing.amounts.blocks is defined and ing.amounts.blocks != "" -%}
{%- if ing.amounts.blocks != [] -%}
{%- set ingredient_counter = loop.index -%}
{%- for amt in ing.amounts.blocks -%}
{%- if loop.index == prt_loop -%}
{%- if amt.amount is defined and amt.amount != "" and amt.amount != 0 and amt.amount != '0' -%}
{{- '\n ' -}}
{{- '\n ' -}}
{%- if ing.processing is defined and ing.processing != "" and ing.processing.blocks is defined and ing.processing.blocks != "" -%}
{%- if ing.processing.blocks != [] -%}
{{- ' | ' -}}
Verarbeitungshinweis #{{- ingredient_counter | string -}}
{%- endif -%}
{%- endif -%}
{%- if ing.notes is defined and ing.notes != "" and ing.notes.blocks is defined and ing.notes.blocks != "" -%}
{%- if ing.notes.blocks != [] -%}
{{- ' | ' -}}
Notiz #{{- ingredient_counter | string -}}
{{- '\n ' -}}
{%- endif -%}
{%- endif -%}
{%- if ing.substitutions is defined and ing.substitutions != "" -%}
{%- if ing.substitutions.blocks is defined and ing.substitutions.blocks != "" -%}
{%- if ing.substitutions.blocks != [] -%}
{{- '\n ' -}}
{{- '\n ' -}}
{{- '\n ' -}} Ausweichmöglichkeit:
{{- '\n ' -}}
{%- for sst in ing.substitutions.blocks -%}
{%- if sst.amounts is defined and sst.amounts != "" and sst.amounts.blocks is defined and sst.amounts.blocks != "" -%}
{%- if sst.amounts.blocks != [] -%}
{%- for amt2 in sst.amounts.blocks -%}
{%- if loop.index == prt_loop -%}
{%- if amt2.amount is defined and amt2.amount != "" and amt2.amount != 0 and amt2.amount != '0' -%}
{{- '\n ' -}}
{{- '\n ' -}}
{%- if sst.processing is defined and sst.processing != "" and sst.processing.blocks is defined and sst.processing.blocks != "" -%}
{%- if sst.processing.blocks != [] -%}
{{- '\n ' -}}
{%- for prc2 in sst.processing.blocks -%}
{{- '\n ' -}}
{{- '\n ' -}}
{{ prc2.process }}
{{- '\n ' -}}
{%- endfor -%}
{{- '\n ' -}}
{{- '\n ' -}}
{{- '\n ' -}}
{%- endif -%}
{%- endif -%}
{%- if sst.notes is defined and sst.notes != "" and sst.notes.blocks is defined and sst.notes.blocks != "" -%}
{%- if ing.notes.blocks != [] -%}
{{- '\n ' -}}
{%- endif -%}
{%- if child.ingredients is defined and child.ingredients != "" %}
{%- if child.ingredients.blocks != [] -%}
{{- '\n ' -}}
{%- for ing1 in child.ingredients.blocks %}
{%- if ing1.ingredient is defined and ing1.ingredient != "" -%}
{%- if ing1.amounts is defined and ing1.amounts != "" and ing1.amounts.blocks is defined and ing1.amounts.blocks != "" -%}
{%- if ing1.amounts.blocks != [] -%}
{%- set ingredient_counter = loop.index -%}
{%- for amt in ing1.amounts.blocks -%}
{%- if loop.index == prt_loop -%}
{%- if amt.amount is defined and amt.amount != "" and amt.amount != 0 and amt.amount != '0' -%}
{%- if ing1.processing is defined and ing1.processing != "" and ing1.processing.blocks is defined and ing1.processing.blocks != "" -%}
{%- if ing1.processing.blocks != [] -%}
{{- '\n ' -}}
{%- for prc in ing1.processing.blocks -%}
{{- '\n ' -}}
{{- '\n ' -}}
{{ prc.process }}
{{- '\n ' -}}
{%- endfor -%}
{{- '\n ' -}}
{{- '\n ' -}}
{{- '\n ' -}}
{%- endif -%}
{%- endif -%}
{%- if ing1.notes is defined and ing1.notes != "" and ing1.notes.blocks is defined and ing1.notes.blocks != "" -%}
{%- if ing1.notes.blocks != [] -%}
{{- '\n ' -}}