Matt Pinsent
Matt Pinsent

Reputation: 1

Pass in the logical negation of a boolean to a partial template in dust

I Have a partial template that takes a boolean, and I want that boolean to be a negation of a reference I have. So if my reference is true I want the value passed in to be false. Any way I can do this in dust without modifying the partial template?

{>my-partial}
     key=!value
{my-partial/}

Upvotes: 0

Views: 88

Answers (1)

Matt Pinsent
Matt Pinsent

Reputation: 1

I solved this by changing the js template helper I was using to pass in the intended reference

Upvotes: 0

Related Questions