Hydrate JSON templates & conditional rendering #205
|
Hi, {
"type": "text",
"data": "{{ title }}",
"style": {
"color": "#FFFFFF",
"fontSize": 24.0
}
}Or do we have to do this manually with replace regex. Second question: {
"type": "text",
"render": myCondition,
"data": "Hello, World!",
"style": {
"color": "#FFFFFF",
"fontSize": 24.0
}
}Thanks! |
Answered by
divyanshub024
Apr 7, 2025
Replies: 1 comment 6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @cka29! Sorry, we don’t have plans to add this to the framework at the moment. But if more users request it, we’ll definitely consider it.
In the meantime, you can get it working just like you mentioned, by using a custom widget parser and regex.