-
-
Notifications
You must be signed in to change notification settings - Fork 20
Question: How to "compare" the gitmoji or emoji value in a Helper function #92
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
Comments
In the current template, for example |
Furthermore, if we rewrite
|
I think the best solution is to propose a helper to omit properties on the
and rewrite your example as the following one
|
Hey @momocow sorry for taking a while to feedback, gonna test it this weekend and give you some feedback, thanks a lot for all the help |
@momocow Hi, tried it but I got the following error:
I copy pasted your suggestion but still here is how it looks: Helper:
Using it at default-template.hbs:
For what I can see, it looks like maybe some entries were undefined or null, or maybe im not properly passing the object, |
Hi @momocow, this question is related to my attempt to do this "Other section" #87 while you implemente an enhacement, I was thinking of a workaround meanwhile, that if we could compare what is the value of the emoji maybe we could do some logic, but I do not know how to compare the value of the emoji, let me elaborate:
When you have the following in the default hbar template:
I was imagining that maybe with a Helper function that could check what is the "value" of the emoji we could do some logic like so:
but it does not work ofcourse, I was wondering how could you check the value of the emoji? I tried different ways, but I guess it will not work checking the equality against a String, because the emoji is an object that I believe is one of this objects from node-emoji? So based on that I think that maybe we could do some logic, but first I would like to confirm is it is possible to do what im trying to explain, which would be to create a helper function that can tell if it is a bug emoji or sparkles or any type. How could you do it from the helper? Also notice in the template
<what_would_go_in_here?>
not sure what should I pass there to get the object, should it bethis
or how could it be done?Hopefully you understood what I am trying to do, thank you
The text was updated successfully, but these errors were encountered: