Closed sbutt closed 8 months ago
Here's the output of mustache -t
----- Will apply the following ingress: -----
[:multi,
[:static,
"namespace: qa\n" +
"auth_annotations: \n" +
" foo: bar baz\n" +
" sam: jam man\n"]]
and mustache -c ...
----- Will apply the following ingress: -----
"namespace: qa\nauth_annotations: \n foo: bar baz\n sam: jam man\n"
Correction: It's NOT YAML, it's actually a Ruby Hash. Still a bug though, IMO.
Closing this, because this repository is only about the Mustache website. https://github.com/mustache/mustache/issues/248 is the correct location for your issue.
I posted this question on stack exchange...
https://stackoverflow.com/questions/53829832/multi-line-yaml-input-to-mustache-template-outputs-as-json
However, it looks like a bug to me after reading the manual and trawling google searches all morning.
I stripped the code down even further, since I posted that example to really try to minimise.
Here's the output I get from the above...
and I really don't understand why the line after "another_thing" is rendered as JSON instead of YAML.
I'm using mustashe v1.1.0 on Ubuntu 18.04.
Thanks!