chowdown icon indicating copy to clipboard operation
chowdown copied to clipboard

Added dynamic ingredients scaling.

Open KN4CK3R opened this issue 5 years ago • 1 comments

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

+ No ingredient "parsing" - Needs recipe changes

Preview: grafik grafik

KN4CK3R avatar Feb 24 '20 20:02 KN4CK3R

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?

KN4CK3R avatar Mar 01 '20 15:03 KN4CK3R