duster/js/test_cases/block_simple
Tom Alexander 9a0b28d80d
Adding more tests.
2020-05-09 15:49:49 -04:00
..
README.md Adding more tests. 2020-05-09 15:49:49 -04:00
base.dust Starting a test for blocks and inline partials. 2020-05-09 15:38:15 -04:00
input1.json Starting a test for blocks and inline partials. 2020-05-09 15:38:15 -04:00
main.dust Starting a test for blocks and inline partials. 2020-05-09 15:38:15 -04:00

README.md

Blocks seem to be rendered with the last inline partial of the same name.

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.