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

New project fmf-jinja #207

Open
LecrisUT opened this issue Aug 15, 2023 · 0 comments
Open

New project fmf-jinja #207

LecrisUT opened this issue Aug 15, 2023 · 0 comments

Comments

@LecrisUT
Copy link
Contributor

I want to let you guys know about a small feature project built upon fmf currently named fmf-jinja. In a nutshell it's a template renderer where you define a template directory (or files) and these are rendered in-place in the path structure of the fmf tree. I.e. with an input:

$ tree ./
./
├── .fmf
    └── version
├── main.fmf
└── template
    ├── template_file.yaml.j2
    └── orig_file.yaml
$ cat main.fmf
templates: /template

/rootA:
  vars:
    ...
/rootB:
  vars:
    ...

Then it generates:

$ fmf-jinja generate --output=./out
$ tree ./out
./out
├── rootA
│   ├── template_file.yaml
│   └── orig_file.yaml
└── rootB
    ├── template_file.yaml
    └── orig_file.yaml

Let me know what you guys think.

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