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
{{ message }}
Repository navigation
First Inline Block always contains garbage data #380
Problem statement:
Having a layout Handlebars.RegisterTemplate("layout", @"Hello {{>sec1}}" and {{>sec2}}");
and a template {{#*inline 'sec1'}} Tom {{/inline}} {{#*inline 'sec2'}} Jerry {{/inline}}
Expected result: Hello Tom and Jerry
Actual result: Hello and Jerry
After some experiments, I found out that the first section is always used for the 'everything else' like the texts outside of sections.
Workaround#1 inverse dependencies and register template as partial
Workaround#2 having a layout with the first Default section {{#*inline 'garbage'}} this is going to fall into hidden div for example {{/inline}} {{#*inline 'sec1'}} Tom {{/inline}} {{#*inline 'sec2'}} Jerry {{/inline}}
Suggestion
Add the ability to completely disable garbage content and omit the first (mandatory to make it work) section.
Activity
oformaniuk commentedon Nov 2, 2020
Hello @olegolo .
Let's keep issues backlog clean and continue conversation in the original issue.
olegolo commentedon Nov 2, 2020
Just created an issue and in the process of putting a description
oformaniuk commentedon Nov 2, 2020
If you feel like this is a separate bug - feel free to reopen the issue.
oformaniuk commentedon Nov 2, 2020
@olegolo can you please provide code example in form of test?