You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Handlebars, and mustache, are agnostic of language-level constructs such as indenting and will output the literal whitespace that you define. When using partials the indenting will only impact the first line if the partial has multiple lines.
Why is it that you want to have the nesting match? For debugging mostly?
Mainly for neater templates. It's 100% a nice to have, but I think the importance lies in debugging like you said i.e., diff checks can ignore white space of course, but in GH it requires a parameter in the URL to do this.
In our instance we are building templates and passing them to our backend team to build into the CMS, so they're either tidied up by us, them or we have messy HTML code.
It turns out that the mustache spec dictates the indent behavior for partials and requires indentation for standalone partials (partials that are on their own line). This change will be implemented by #787, which should be merged soon.
Is there any way to fix the following issue, and if not, can this be addressed in a future release?
The following code:
compiles to:
Apologies if this is an isolated issue, I am looking into a fix in my spare time also.
The text was updated successfully, but these errors were encountered: