38 lines
1.3 KiB
YAML
38 lines
1.3 KiB
YAML
---
|
|
{#
|
|
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 -%}
|
|
|
|
{{- '\nrecipe_uuid: ' -}} "{{ this._gid }}"
|
|
|
|
{%- include "zutaten/yields.yaml" -%}
|
|
|
|
{%- include "zutaten/ingredients.yaml" -%}
|
|
|
|
{%- include "zutaten/steps.yaml" -%}
|
|
|
|
{%- include "zutaten/oven.yaml" -%}
|
|
|
|
{%- 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" -#}
|