We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given the template:
spec: {{#envvars}} env: {{#envvars_list}} {{envvar_name}}: {{envvar_value}} {{/envvars_list}} {{/envvars}} resources: requests: cpu: 1
and environment:
Map( "envvars" -> Map( "envvars_list" -> List(Map("envvar_name" -> "FOO", "envvar_value" -> 1024)) ) )
I expect (note how the indentation of resources is preserved from the template):
resources
spec: env: FOO: 1,024 resources: requests: cpu: 1
However it seems Scalate gives (note how resources is indented an extra two spaces):
I've created a repo that you should be able to just pull and sbt run here: https://github.com/adelbertc/scalate-test
sbt run
The text was updated successfully, but these errors were encountered:
A workaround (in YAML anyways) is adding a {{_}} or a comment in between the lines in question. For instance:
{{_}}
spec: {{#envvars}} env: {{#envvars_list}} {{envvar_name}}: {{envvar_value}} {{/envvars_list}} {{/envvars}} {{! hack }} resources: requests: cpu: 1
Will give (which incidentally is valid YAML.. I think):
spec: env: FOO: 1,024 # there's whitespace here up to the '#' resources: requests: cpu: 1
Sorry, something went wrong.
Spaces are also getting removed after mustache functions (same syntax as iterations and conditions). I would appreciate a fix for this.
I'm also running into similar issues with whitespace. Any updates on this issue?
No branches or pull requests
Given the template:
and environment:
I expect (note how the indentation of
resources
is preserved from the template):However it seems Scalate gives (note how
resources
is indented an extra two spaces):I've created a repo that you should be able to just pull and
sbt run
here: https://github.com/adelbertc/scalate-testThe text was updated successfully, but these errors were encountered: