Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to add nested paths to layouts #531

Open
Kaliumhexacyanoferrat opened this issue Oct 29, 2024 · 0 comments
Open

Allow to add nested paths to layouts #531

Kaliumhexacyanoferrat opened this issue Oct 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Kaliumhexacyanoferrat
Copy link
Owner

Kaliumhexacyanoferrat commented Oct 29, 2024

As a developer of a web application, I would like to add a nested path to a layout so that I do not need to write all of the boiler plate code myself.

Example

var app = Layout.Create()
                .Add("/api/v1", ...)
                .Add("/api/v2", ...);

instead of

var api = Layout.Create()
                .Add("v1", ...)
                .Add("v2", ...);

var app = Layout.Create()
                .Add("api", api);

Acceptance criteria

  • They layout builder supports nested paths
  • Trailing, leading and double slashes are ignored
  • The feature works for all layout builder extensions defined in the core solution
  • If a nested path cannot be added because there is already another handler, an exception will be thrown
  • The feature is documented on the website
@Kaliumhexacyanoferrat Kaliumhexacyanoferrat added the enhancement New feature or request label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant