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

Can't get inverted sections to work. #7

Open
SirRawlins opened this issue Mar 5, 2012 · 2 comments
Open

Can't get inverted sections to work. #7

SirRawlins opened this issue Mar 5, 2012 · 2 comments

Comments

@SirRawlins
Copy link

Hi,

I'm trying to get inverted sections working, but for some reason the content within the inverted section is always rendered, even if the key exists.

e.g.

{{#replacement}}

Thank you for your replacement order #{{order_number}}. Our delivery department will be in contact with you as soon as your replacement has been made, to arrange for its delivery and the collection of your returned products from order.


{{/replacement}}

{{^replacement}}

Thank you for your recent order. The attached order is what we are going to make for you. Please can you spend a minute to check it, to make sure this is exactly what you want.


{{/replacement}}

The first paragraph is rendered only when 'replacement' is a key within the collection. I would expect the second paragraph to only render if the key does not exist, however, it rendered even when it does.

Am I doing something wrong here? or is there a bug?

I downloaded the latest .zip of the project this morning to test with and it still seems to have this problem.

Thanks.

Robert

@jenzener
Copy link

Did anyone resolve this issue yet?

@pmcelhaney
Copy link
Owner

I think so. Get the latest version at @rip747's branch. https://github.com/rip747/Mustache.cfc

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

3 participants