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

How to add (gt, lt, eq) condition in handlebarjs for sendgrid email? #77

Open
mariokam opened this issue Nov 28, 2018 · 1 comment
Open

Comments

@mariokam
Copy link

mariokam commented Nov 28, 2018

Actual Behaviour

It returns The template you provided is invalid.

<!--{{#if (&gt; 1 2) }}-->
foo
<!--{{else}}-->
bar
<!--{{/if}}-->

Expected Behaviour

bar should be displayed

Steps to reproduce it

Use Sendgrid Email Design Editor and just add code block and try it.

@mariokam
Copy link
Author

mariokam commented Nov 28, 2018

Or at least something like

<!--{{#if 1 > 2 }}-->
foo
<!--{{else}}-->
bar
<!--{{/if}}-->

@mariokam mariokam changed the title How to add condition in handlebarjs for sendgrid email? How to add (gt, lt, eq) condition in handlebarjs for sendgrid email? Nov 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant