Crates.io | recp |
lib.rs | recp |
version | 0.8.5 |
source | src |
created_at | 2023-06-09 14:42:59.937169 |
updated_at | 2024-11-06 07:33:03.959705 |
description | A cli utility to display recipes in recipe-lang |
homepage | https://github.com/reciperium/recipe-lang |
repository | https://github.com/reciperium/recipe-lang |
max_upload_size | |
id | 886316 |
size | 21,114 |
Write recipes understood by humans and machines, powering reciperium.com
[!WARNING]
Recipe lang is in its infancy, things may change unexpectedly
Recipe Lang aims to be a general language to describe recipes of any kind (food, art, construction, etc.).
For example:
To learn more read the specification
File extension: .recp
(/re c p/) reads like recipe.
Take {potatoes}(3) and wrap them in &{aluminium foil}.
Throw them in the fire of the grill
Wait for t{1 hour}
On Mac or Linux you can run:
nix profile install 'github:reciperium/recipe-lang#recp'
cargo install recp
Recipe lang supports:
{ingredient_name}
or with amount: {ingredient_name}(200gr)
&{pot}
t{15 minutes}
@{woile/tomato-sauce}
>> tags: abc, easy, high-fiber
---
, where you can add the history, see examples/buddha-bowl.recp/* my comment */
Check more examples in the examples folder.
>> name: Potatoes a la Jean-Claude
>> tags: vegan
>> servings: 2
Preheat the oven to 180 C.
Cut the {red potatoes}(500gr) into fourths.
Put them in a &{bowl}, then add the {garlic}(8), add {oil},
{salt}, {pepper} and {rosemary} to your liking.
Mix everything and place them on an oven plate.
Roast for t{20 minutes}, then mix it and roast for another t{20 minutes}.
Enjoy!
In a file called: potatoes-ala-jean-claude.recp
We can the read this recipe with the recp
cli:
recp show potatoes-ala-jean-claude.recp
It will show
Potatoes A La Jean Claude
Ingredients
red potatoes 500 gr
garlic 8
oil
salt
pepper
rosemary
Instructions
Preheat the oven to 180 C.
Cut the red potatoes into fourths.
Put them in a bowl, then add the garlic, add oil,
salt, pepper and rosemary to your liking.
Mix everything and place them on an oven plate.
Roast for 20 minutes, then mix it and roast for another 20 minutes.
Enjoy!