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...