Skip to content

Proposal: add named component variables - #149

Open
LukaHummel wants to merge 1 commit into
cooklang:mainfrom
LukaHummel:proposal/0019-component-variables
Open

LukaHummel wants to merge 1 commit into
cooklang:mainfrom
LukaHummel:proposal/0019-component-variables

Conversation

@LukaHummel

@LukaHummel LukaHummel commented Aug 2, 2026 •

Copy link
Copy Markdown

Summary

  • add proposal 0019 for recipe-scoped ingredient and cookware variables
  • define ordered ingredient alternatives with authoritative recipe-wide totals
  • support inline amount allocations with proportional resolution and linter diagnostics
  • define indexed cookware identities that clients can distinguish in steps and aggregate in equipment lists
  • document parsing, validation, compatibility, client behavior, alternatives, and normative scenarios

Related discussions: #68 and #75.

@LukaHummel
LukaHummel marked this pull request as ready for review August 2, 2026 13:17
@dubadub

dubadub commented Sep 12, 2026

Copy link
Copy Markdown
Member

Hey, sorry, just noticed your proposal, will have a look next few days.

@dubadub

dubadub commented Nov 14, 2026

Copy link
Copy Markdown
Member

I have opened #162 (proposal 0025, alternatives), which overlaps with the ingredient part of this proposal. It writes the options in the step itself, for example @fresh yeast{21%g}|@instant yeast{7%g}, and adds labels for choices that reach whole steps and sections.

It does not cover two things proposed here: the split of one total amount between steps, and the indexed cookware identities.

How the two proposals meet is described in its "Relation to other proposals" section. Comments on it are welcome, in particular on cases that variables handle and inline options do not.

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.

2 participants