-
Notifications
You must be signed in to change notification settings - Fork 36
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
Render yaml config with toYAML #42
Comments
I experimented a little bit and got something like this working:
Output:
would that work for you? |
This looks promising. |
Could you create a complete syntax example + the desired output? |
Template should be like...
output should be like
|
I create a map and a set Data Type (see https://github.com/HeavyHorst/remco/blob/master/docs/content/template/template-functions.md): map:
Set:
|
Hi.
I want to render template like
config | toYAML
but i have to createconfig
in runtimeThat is a
set
that should be compiled from severalfor
and lots ofif
.How should i do it with pongo2 and remco ?
As i see there are no simple way how to create empty set and append values to it.
Any ideas ?
The text was updated successfully, but these errors were encountered: