Indentation is not working for nested partials, nested partials are getting an extra indentation level for subsequent lines in the partial, and the lines after the partial is rendered back in the upper level template don't return to their indentation level.
For example, I am using the command line (eg. chevron -d data.json main.mustache with an empty data.json) and the following mustache template files:
Indentation is not working for nested partials, nested partials are getting an extra indentation level for subsequent lines in the partial, and the lines after the partial is rendered back in the upper level template don't return to their indentation level.
For example, I am using the command line (eg.
chevron -d data.json main.mustache
with an empty data.json) and the following mustache template files:And the expected output should be:
But I am getting:
One level nested partials work fine. This can cause an unwanted behavior specially for indentation sensitive file formats like YAML.