2021-06-24 23:44:12 +02:00
|
|
|
---
|
|
|
|
{#
|
|
|
|
definition_ORF: "https://open-recipe-format.readthedocs.io/en/latest/topics/reference/orf.html"
|
|
|
|
json_schema: "https://raw.githubusercontent.com/techhat/openrecipeformat/master/schema.json"
|
|
|
|
validator: "https://json-schema.org/"
|
|
|
|
validator_steps:
|
|
|
|
- "pip3 install jsonschema"
|
|
|
|
- "install yq"
|
|
|
|
- "wget {{ json_schema }}"
|
|
|
|
- "curl rezep.yaml | yq -j > rezept.json"
|
|
|
|
- "jsonschema -i rezept.json schema.json"
|
|
|
|
|
|
|
|
usda_lookup: "https://fdc.nal.usda.gov/fdc-app.html" -#}
|
|
|
|
|
|
|
|
{%- if this.recipe_name and this.recipe_name != "" -%}
|
|
|
|
recipe_name: "{{ this.recipe_name | default(this.title) }}"
|
|
|
|
{%- else -%}
|
|
|
|
recipe_name: "{{ this.title }}"
|
|
|
|
{%- endif -%}
|
|
|
|
|
2021-07-31 18:48:28 +02:00
|
|
|
{{- '\nrecipe_uuid: ' -}} "{{ this._gid }}"
|
2021-06-24 23:44:12 +02:00
|
|
|
|
2021-07-31 18:48:28 +02:00
|
|
|
{%- include "zutaten/yields.yaml" -%}
|
2021-06-24 23:44:12 +02:00
|
|
|
|
2021-07-31 18:48:28 +02:00
|
|
|
{%- include "zutaten/ingredients.yaml" -%}
|
|
|
|
|
|
|
|
{%- include "zutaten/steps.yaml" -%}
|
|
|
|
|
|
|
|
{%- include "zutaten/oven.yaml" -%}
|
2021-06-24 23:44:12 +02:00
|
|
|
|
|
|
|
{%- if this.source_authors is defined and this.source_authors != "" -%}
|
|
|
|
{{ '\n\nsource_authors:'}} "{{ this.source_authors }}"
|
|
|
|
{%- endif -%}
|
|
|
|
{%- if this.x_license is defined and this.x_license != "" -%}
|
|
|
|
{{ '\nX-License:' }} "{{ this.x_license }}"
|
|
|
|
{%- endif -%}
|
|
|
|
{{ '\nsource_url:' }} "{{ '../'|url(external=true) }}"
|
|
|
|
{#- source: "https://open-recipe-format.readthedocs.io/en/latest/topics/tutorials/walkthrough.html" -#}
|