Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the recipes DRY! #259

Closed
syntacticallyWrong opened this issue Mar 20, 2021 · 4 comments
Closed

Make the recipes DRY! #259

syntacticallyWrong opened this issue Mar 20, 2021 · 4 comments

Comments

@syntacticallyWrong
Copy link

If 50 recipes have you boil spaghetti for example, why not just make a spaghetti recipe and import it into all the other recipes that use it? (Spaghetti is an example, but you get the idea.)

With this you can make a lot of other stuff easier too, like adding ingredients and nutrients automatically by just importing a "sub-recipe" for the desired dish.

There are multiple ways to implement this, so suggestions in how this would be done in the best way possible is appreciated!

@LukeSmithxyz
Copy link
Owner

Well, that's exactly what I originally had. That's why, for example, the "Pasta (store bought)" page exists, to be linked from others.

Unfortunately few have followed the example so I need to say it more explicitly in the README or enforce it.

@sylGauthier
Copy link
Contributor

sylGauthier commented Mar 21, 2021

People just have to properly link recipes together like [Recipe name](recipe-file-name.html), using relative links so that the linking works even if people are hosting their own instances.

I am against "injecting" recipes into each other, useless complexity when hyperlinks already exist for this very purpose.

@zyansheep
Copy link
Contributor

Maybe add something to the Readme that says put hyperlink to ingredient (relative or external) in parentheses after each ingredient if possible.

@Bumbadawg
Copy link

Would love to contribute to some recursive recipe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants