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

Added dynamic ingredients scaling. #32

Open
wants to merge 2 commits into
base: gh-pages
Choose a base branch
from
Open

Added dynamic ingredients scaling. #32

wants to merge 2 commits into from

Conversation

KN4CK3R
Copy link
Contributor

@KN4CK3R KN4CK3R commented Feb 24, 2020

A different implementation of dynamic scaling of ingredients like in #22

+ No ingredient "parsing"
- Needs recipe changes

Preview:
grafik
grafik

@KN4CK3R
Copy link
Contributor Author

KN4CK3R commented Mar 1, 2020

I have experimented with different ingredient formats but I'm not sure which is more useful.

ingredients:
- 4|bananas
- 0.5|cup|butter
- 100|g|sugar
- salt

Pro: easy to use and understand (as a programmer)
Contra: custom format to parse

ingredients:
- bananas:
  - 4
- butter:
  - 0.5
  - cup
- sugar:
  - 100
  - g
- salt

Pro: seperated parts
Contra: verbose format (and maybe difficult (don't forget the colon))

What do you think?

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

Successfully merging this pull request may close these issues.

1 participant