-
Notifications
You must be signed in to change notification settings - Fork 11
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
Unable to render negative numbers #98
Labels
bug
Something isn't working
Comments
I checked the error logs, for the payload {
"test": -3
} the error trace is
|
🤦 |
Hello, thank you for opening the issue. The reason behind the bug is that the standalone stencil runner uses its own JSON parser implementation. (The bug is not present when stencil is used as the service or as a library.) Apparently, it is far from perfect. I have released version |
Awesome, thank you 💚 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When trying to render out a negative number Stencil breaks and returns nothing. It works with positive numbers and
0
.To Reproduce
Take this input
{ "test": -1 }
and this stencil template{%= test %}
and watch it break.Expected behavior
I would expect stencil to output the negative number in the template.
Environment where template is rendered:
The text was updated successfully, but these errors were encountered: