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

Develop values template render #8

Closed
nsyzrantsev opened this issue Jan 10, 2025 · 0 comments · Fixed by #9
Closed

Develop values template render #8

nsyzrantsev opened this issue Jan 10, 2025 · 0 comments · Fixed by #9
Assignees

Comments

@nsyzrantsev
Copy link
Contributor

nsyzrantsev commented Jan 10, 2025

Description

Develop values template render using the Tera template engine, inspired by Jinja2/Django templating engines.

This render will be included in the zefiro-cwl repository.

Input Example:

Template before rendering (values.yml):

in_file:  
  class: File  
  location: '{{ inputLocation }}/output/input.txt'  
out_file: 'output.txt'  

Output Example:

Rendered template with input data {"inputLocation": "s3://bucket/sample/"}:

in_file:  
  class: File  
  location: 's3://bucket/sample/output/input.txt'  
out_file: 'output.txt'  

Notes:

  • inputLocation is a constant Jinja variable that can be replaced dynamically during the rendering process. Other variables can have a custom name.
@nsyzrantsev nsyzrantsev self-assigned this Jan 10, 2025
@nsyzrantsev nsyzrantsev converted this from a draft issue Jan 10, 2025
@nsyzrantsev nsyzrantsev changed the title Develop a crate to render values template Develop values template render Jan 10, 2025
@nsyzrantsev nsyzrantsev linked a pull request Jan 11, 2025 that will close this issue
@github-project-automation github-project-automation bot moved this from Todo to Done in Zefiro Project Roadmap Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant