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

Closed
whitecolor opened this Issue Jan 18, 2015 · 4 comments

Comments

Projects
None yet
3 participants
@whitecolor
Contributor

whitecolor 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

This comment has been minimized.

Show comment
Hide comment
@justinbmeyer

justinbmeyer Jan 18, 2015

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.

Contributor

justinbmeyer commented Jan 18, 2015

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.

@whitecolor

This comment has been minimized.

Show comment
Hide comment
@whitecolor

whitecolor Jan 20, 2015

Contributor

Should pull go to master or minor?

Contributor

whitecolor commented Jan 20, 2015

Should pull go to master or minor?

@justinbmeyer

This comment has been minimized.

Show comment
Hide comment
@justinbmeyer

justinbmeyer Jan 20, 2015

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.

Contributor

justinbmeyer commented Jan 20, 2015

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

This comment has been minimized.

Show comment
Hide comment
@justinbmeyer

justinbmeyer Feb 11, 2015

Contributor

Awesome. Thanks!

Contributor

justinbmeyer commented Feb 11, 2015

Awesome. Thanks!

@justinbmeyer justinbmeyer added this to the 2.2.0 milestone Feb 11, 2015

@daffl daffl changed the title from {{#is}} helper to {{#is}} and {{#eq}} helper Feb 19, 2015

@daffl daffl closed this in #1412 Feb 20, 2015

@daffl daffl removed the fixed in branch label Feb 20, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment