verils / gotemplate4j

Go template implementation in Java
MIT License
11 stars 3 forks source link

Execution question #4

Open pantinor opened 3 weeks ago

pantinor commented 3 weeks ago

Is there a way to execute the template with provided yaml such that the template can parse golang ".Values" from the input values yaml?

{{- if .Values.config.local -}} {{- range $key, $val := .Values.config.local -}}

and the input is just the yaml like:

config: local: etc:

pantinor commented 3 weeks ago

you may be already aware that this above templating syntax that referencing .Values is how helm templating works.

verils commented 3 weeks ago

No. This project is an implementation of golang's standard text/template in Java, the Helm features are not in consideration. There should be another project to do these things, I don't have any planning for such a project.

pantinor commented 3 weeks ago

Thanks. Do you know if there are any java libraries that can emulate helm templating implementation?

verils commented 1 week ago

I haven't found one yet.