Open laurie71 opened 13 years ago
Sometime a block should be wrapped by other markup, but that markup should only be included when the block is defined:
**base.dust***
{?block} <div class="my-block"> {+block/} </div> {/block}
template.dust
{>"base.dust"/} {<block}wrap this with a classed div{/block}
The {?block} check never succeeds, so neither the block nor the wrapper markup get output to the result stream.
{?block}
Sometime a block should be wrapped by other markup, but that markup should only be included when the block is defined:
**base.dust***
template.dust
The
{?block}
check never succeeds, so neither the block nor the wrapper markup get output to the result stream.