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

Basic tempalte support for insert_yaml and insert_yaml_as_extern #4

Open
MisterGC opened this issue Jul 3, 2024 · 0 comments
Open
Assignees
Milestone

Comments

@MisterGC
Copy link
Contributor

MisterGC commented Jul 3, 2024

Instead of only directly inserting the transformed content, these functions should also support templates - e.g. if multiple instances only differ in a small amount of field this could allow something like:

mynode:
  _f: insert_yaml
  _a: 
     file: 'cube_template.yaml'
     template_args:
        scale: 2.0
        color: blue

This solution should stay compatible to the old invocation which allowed to specify a file path without using the template functionality. E.g.

mynode:
  _f: insert_yaml
  _a: 'cube1.yaml'
@MisterGC MisterGC added this to the First Release milestone Jul 3, 2024
@MisterGC MisterGC self-assigned this Jul 3, 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

1 participant