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

[Request] Add an !include <file> like what Home Assistant does for the config. #254

Open
Krojack opened this issue Nov 11, 2024 · 1 comment
Milestone

Comments

@Krojack
Copy link

Krojack commented Nov 11, 2024

Currently in Home Assistant you can include other YML files to help keep things somewhat clean.

Small example:

pages:
  - name: Home
    columns:
      - size: small
        widgets: !include page-1-widgets-left.yml
      - size: full
        widgets: !include page-1-widgets-middle.yml
      - size: small
        widgets: !include page-1-widgets-right.yml
  - name: Bookmarks
    columns:
      - size: small
        widgets: !include page-2-widgets-left.yml
      - size: full
        widgets: !include page-2-widgets-middle.yml
      - size: small
        widgets: !include page-2-widgets-right.yml

This would then load the contents of page-1-widgets-left.yml in that spot.

Rather than have everything in one large file, you could break things down into separate files.

@svilenmarkov
Copy link
Member

Hey, thanks for the suggestion!

The syntax likely won't be the same and there may be some quirks but I can add something like this for the next release.

@svilenmarkov svilenmarkov added this to the v0.7.0 milestone Nov 13, 2024
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

No branches or pull requests

2 participants