Open quiquelhappy opened 2 years ago
Could you provide an example of a file where you {{#extend}}
the layout that contains these blocks so I can see how you're using {{#content}}
and get a better understanding of the output you're expecting, please? What you're trying to do is a pattern I've never seen before, so I want to make sure I fully understand.
I created an example repo here: https://github.com/quiquelhappy/handlebars-layouts-issue
You should be able to test it with npm run dev
.
I've also included an expected.html
file with a note on top explaining the desired output and the reasoning behind it.
You can also test WorkingLayout.hbs by changing const working = false
to true on index.js
Context+What I checked
Env
Compile with hard errors
In both of the following cases, the error is the same:
Variable block name
Trying to render a block with a variable name
with the data
Fixed block name
Trying to render a block with a constant name
Successful compile, no errors, but invalid/unwanted output
Nested variable block name error
In this case there are no errors being thrown, but the {{#block ...}} results in a blankspace in every iteration.
with the tamplate