Skip to content

Placeholder support for depRules. #212

@rainerhahnekamp

Description

@rainerhahnekamp

At the moment, depRules only supports wildcards — for example:

'domain:*': ['sameTag']

For use cases involving nested tags, such as:

  • domain:booking:ui
  • domain:holidays:ui
  • domain:shop:ui

it would be helpful to define rules like:

depRules: {
  'domain:<domain>:ui': ['domain:<domain>:model']
}

In addition, it would make sense to expose those placeholders to the function-based alternative as well:

depRules: {
  'domain:<domain>:ui': ({ placeholders }) => {
    console.log(placeholders.domain);
    // return allowed tags programmatically
  }
}

This would make complex, domain-driven setups more expressive and easier to maintain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions