Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exists/notexists sections don't work for inline partial blocks #33

Open
laurie71 opened this issue Aug 9, 2011 · 0 comments
Open

exists/notexists sections don't work for inline partial blocks #33

laurie71 opened this issue Aug 9, 2011 · 0 comments

Comments

@laurie71
Copy link

laurie71 commented Aug 9, 2011

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant