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

{{#is}} and {{#eq}} helper #1406

Closed
wclr opened this issue Jan 18, 2015 · 4 comments · Fixed by #1412
Closed

{{#is}} and {{#eq}} helper #1406

wclr opened this issue Jan 18, 2015 · 4 comments · Fixed by #1412
Assignees
Milestone

Comments

@wclr
Copy link
Contributor

wclr commented Jan 18, 2015

Are you considering adding stache/mustach {{#is}} helper in the core?

To allow view statement like this

{{#is someAttr anotherAttr}} {{/is}}

{{^is someAttr 'someConstantValue' }} {{/is}}

Having this is reducing the need of some exessive code to handle the view state, currenty it is done mainlty with {{if#}} helper,

{{#switch}} #1264 migth be useful as well.

@justinbmeyer
Copy link
Contributor

I'm not planning on adding it, but if you'd like to add it, I'll accept a pull request with tests+docs.

Sent from my iPhone

On Jan 18, 2015, at 1:20 PM, Alex notifications@github.com wrote:

Are you considering adding stache/mustach {{#is}} helper in the core?

To allow view statement like this

{{#is someAttr anotherAttr}} {{/is}}

{{^is someAttr 'someConstantValue' }} {{/is}}


Reply to this email directly or view it on GitHub.

@wclr
Copy link
Contributor Author

wclr commented Jan 20, 2015

Should pull go to master or minor?

@justinbmeyer
Copy link
Contributor

I would make it against master.

Sent from my iPhone

On Jan 19, 2015, at 6:45 PM, Alex notifications@github.com wrote:

Should pull go to master or minor?


Reply to this email directly or view it on GitHub.

@justinbmeyer
Copy link
Contributor

Awesome. Thanks!

@justinbmeyer justinbmeyer added this to the 2.2.0 milestone Feb 11, 2015
@daffl daffl changed the title {{#is}} helper {{#is}} and {{#eq}} helper Feb 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants