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
There are cases when you need to iterate over a collection, or put some kind of condition and don't want to get the \n character at the end of each control line.
Example:
{{#if something}}\n
Some text\n
{{/if}}\n
Output
\n
Some text\n
\n
In handlebars.js, it gets fixed with {{~#if something}}. See issue #336 in handlebars.js for further info. It seems to be resolved in a newer version of handlebars.js (1.10).
The text was updated successfully, but these errors were encountered:
There are cases when you need to iterate over a collection, or put some kind of condition and don't want to get the
\n
character at the end of each control line.Example:
Output
In handlebars.js, it gets fixed with
{{~#if something}}
. See issue #336 in handlebars.js for further info. It seems to be resolved in a newer version of handlebars.js (1.10).The text was updated successfully, but these errors were encountered: