We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug if we have a payload like this:
{ "u-u-i-d": 42 }
We can't reference it in a template as it gives Java.lang.NullPointerException
Java.lang.NullPointerException
{%= u-u-i-d %}
Expected behavior It would be nice to be able to reference UUID keys from the payload.
Some syntax ideas
{%= ['a-b'] %}
{%= payload['a-b'] %}
payload
We discussed similar issue #91 recently.
The text was updated successfully, but these errors were encountered:
Hi, thanks for the report! I like the first proposed idea better. I hope I can start working on it in a few days. 🙇
Sorry, something went wrong.
Hello, I have just released version 0.3.30. It has the new data() function that can be used to access the whole template data payload.
0.3.30
data()
In your example, the value under key u-u-i-d can be accessed as: {%= data()['u-u-i-d'] %}.
u-u-i-d
{%= data()['u-u-i-d'] %}
Awesome, thank you! 💚
No branches or pull requests
Describe the bug
if we have a payload like this:
We can't reference it in a template as it gives
Java.lang.NullPointerException
{%= u-u-i-d %}
Expected behavior
It would be nice to be able to reference UUID keys from the payload.
Some syntax ideas
{%= ['a-b'] %}
{%= payload['a-b'] %}
(on the downside it can conflict with actualpayload
key from the payload)We discussed similar issue #91 recently.
The text was updated successfully, but these errors were encountered: