I built a powerful programmable recipe website. (WIP)
You write recipes in markdown, you can template in variables from javascript using handlebars. Here is a recipe with a slider, it updates all the amounts in both the ingredients table and inline in the instructions themselves as you move the slider. https://programmablerecipes.com/recipes/richardgill/bread-ah...
Here are a couple of resources related to quantity scaling and rendering, in case they're of interest and/or useful to you: - https://www.jsward.com/cooking/style.shtml - "The Metric Kitchen: Style guide for metric recipes" - https://github.com/ben-ng/convert-units - a nice JavaScrit library for unit conversion and 'best unit' selection
Comments (2,248) 1105 threads
Show all comments
Showing thread 179 of 1105
You write recipes in markdown, you can template in variables from javascript using handlebars.
Here is a recipe with a slider, it updates all the amounts in both the ingredients table and inline in the instructions themselves as you move the slider.
https://programmablerecipes.com/recipes/richardgill/bread-ah...
Here are a couple of resources related to quantity scaling and rendering, in case they're of interest and/or useful to you:
- https://www.jsward.com/cooking/style.shtml - "The Metric Kitchen: Style guide for metric recipes"
- https://github.com/ben-ng/convert-units - a nice JavaScrit library for unit conversion and 'best unit' selection