Skip to content
This repository has been archived by the owner on Jan 17, 2025. It is now read-only.

Reconsider jinja2 #75

Closed
supakeen opened this issue May 13, 2024 · 3 comments
Closed

Reconsider jinja2 #75

supakeen opened this issue May 13, 2024 · 3 comments
Assignees
Labels
boathouse Like a bikeshed, but for boats. specification

Comments

@supakeen
Copy link
Member

supakeen commented May 13, 2024

jinja2 is used extensively in Ansible. Many users are familiar with its workings there. We could support it in the same way which would let us to not need our otk.op.* directives.

jinja2 is shipped in RHEL (due to Ansible). It would not be a lot of work to support the same.

The disadvantage becomes that we lose our language agnosticism for the implementation of the specification. Note that shedding that idea might be beneficial due to #62, #47.

@supakeen supakeen added specification boathouse Like a bikeshed, but for boats. labels May 13, 2024
@supakeen
Copy link
Member Author

This would also apply to:

If we consider more Ansible-isms we could support when and loop which would apply to:

@mvo5
Copy link
Contributor

mvo5 commented May 15, 2024

During the most recent discussions we found no (strong) use-case for jinja2, the closest is how to join a list to a string (c.f. https://github.com/osbuild/otk/pull/83/files#diff-4887983a602cc028a3825636e5f53de81f3f0fd9b119f91f9bb6825cd1e17caaR12 ) but introducing jinja2 just for that seems overkill so for now it seems jinja2 is out (unless we find a different and compelling use-case).

@supakeen
Copy link
Member Author

Correct, let's close this issue as it won't be necessary for our initial plans.

@supakeen supakeen self-assigned this May 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
boathouse Like a bikeshed, but for boats. specification
Projects
None yet
Development

No branches or pull requests

2 participants