Generate one file per selection with matrix
· 4 min read
Every file a scaffold template declares renders at most once. when: can skip a file, but it
can never multiply one. You could work around that by authoring every combination up front and
letting when: prune down to what applies — but that only works if every combination is
knowable in advance. It breaks down for environments picked interactively from a longer list, or
names typed in by hand that no template author could have enumerated ahead of time. Until now,
that meant hand-rolling files outside the template, or maintaining a pile of near-duplicate ones
inside it.
