Skip to content
This repository was archived by the owner on May 13, 2026. It is now read-only.

Enable overriding inheritance per-pattern#6

Open
bryce-gilhome wants to merge 6 commits into
pattern-lab:masterfrom
bryce-gilhome:master
Open

Enable overriding inheritance per-pattern#6
bryce-gilhome wants to merge 6 commits into
pattern-lab:masterfrom
bryce-gilhome:master

Conversation

@bryce-gilhome
Copy link
Copy Markdown

This PR adds a config option dataInheritance.default (bool) which describes the default inheritance behaviour (if the plugin is enabled) - i.e. by default, either inherit lineage pattern data or not - and a 'data-inheritance' key (bool) that can be set in pattern data to override that default.

e.g. if dataInheritance.default is false, and pattern 'foobar' has data 'data-inheritance: true', then any pattern including foobar will use the inherited data. Likewise if the default is true, all included patterns will use inherited data, unless their data contains 'data-inheritance: false'.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant