Templates for generating beautiful printable recipes from YAML metadata.
Generate a Just One Cookbook themed recipe from bibimbap.yaml
example:
pandoc \
-o example/bibimbap.html \
--template templates/justonecookbook/index.html \
--css templates/justonecookbook/index.css \
--metadata image=example/bibimbap.jpg \
--self-contained \
example/bibimbap.yaml
This will generate the following HTML document:
Alternatively, if you want the Cuisine AZ template:
pandoc \
-o example/bibimbap.html \
--template templates/cuisineaz/index.html \
--css templates/cuisineaz/index.css \
--metadata image=example/bibimbap.jpg \
--self-contained \
example/bibimbap.yaml
This will generate the following HTML document:
You can generate sandbox.yaml
- a recipe used to showcase all things you can write and some specific cases - the same way:
pandoc \
-o example/sandbox.html \
--template templates/<template>/index.html \
--css templates/<template>/index.css \
--self-contained \
example/sandbox.yaml
Licensed under the MIT License.