duster/js/test_cases/block_simple/README.md

8 lines
590 B
Markdown
Raw Normal View History

2020-05-09 19:39:38 +00:00
Blocks seem to be rendered with the last inline partial of the same name.
2020-05-09 19:49:49 +00:00
Blocks appear to be able to be registered in a loop, however, their context is defined by the context during the call to the block `{+}` as opposed to when their override is defined by an inline partial `{<}`.
Even if the surrounding dust would prevent a section from being rendered, the inline context is still registered, which makes me think inline contexts are parsed out in a single pass regardless of the context.
Inline partials in sub-templates do not seem to bubble up to blocks in the higher templates.