jaredwray / fumanchu

Handlebars + Helpers Together :heart:
https://fumanchu.org
MIT License
11 stars 2 forks source link

Add complex expression support for filter/if/unless helpers #27

Closed satyajitnayk closed 11 months ago

satyajitnayk commented 11 months ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

{{#filter array ((gt id 123) or (lte price 200))}}AAA{{else}}BBB{{/filter}} // gt, lte are custom helpers

{{#if (gt id 123)}}HI{{else}}BYE{{/if}}

{{#if ((gt id 123) or (lte price 200))}}HI{{else}}BYE{{/if}}



**Describe the solution you'd like**
A clear and concise description of what you want to happen.
jaredwray commented 11 months ago

@satyajitnayk - thanks for this suggestion. I was not planning to add that in but if you want to do a pull request and add it that would be great and happy to help on it.

satyajitnayk commented 11 months ago

@jaredwray I don't think I will be able to do so, due to certain constrains. But for sure will try it in near future.

jaredwray commented 11 months ago

@satyajitnayk - ok. Will close this out till you are ready