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 handlebars = new Handlebars();
Template template = handlebars.compile("root");
System.out.println(template.apply(null));
and this root template:
BEGIN
{{~#>partial_test ~}}
MIDDLE
{{~/partial_test ~}}
END
and this partial_test template:
{{~> @partial-block ~}}
I expect no blank lines in the output, as whitespace is being stripped at every tag entry and exit.
However what I actually get is:
BEGIN
MIDDLE
END
It seems like the whitespace strip is not respected on any partial tags.
This is frustrating, as it means there is no way to write a filter-style partial block, which does not add extra whitespace, without starting the content immediately after the closing brace of the {{#> }} tag.
The text was updated successfully, but these errors were encountered:
Given this code (using 4.3.1):
and this
root
template:and this
partial_test
template:I expect no blank lines in the output, as whitespace is being stripped at every tag entry and exit.
However what I actually get is:
It seems like the whitespace strip is not respected on any partial tags.
This is frustrating, as it means there is no way to write a filter-style partial block, which does not add extra whitespace, without starting the content immediately after the closing brace of the
{{#> }}
tag.The text was updated successfully, but these errors were encountered: