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
Support inline JS in script tags #33
Comments
That is quite hard as all those curly braces drive the afx parser nuts. As we follow the development of JSX i would implement a solution they chose but am not aware of any |
Did you try it that way?
|
@on3iro Is your problem solved? Can we close this issue? |
@jonnitto oh sorry, I totally forgot about that issue. I did not try the way you proposed, but I eventually will (as soon as I run into a similar issue, I guess ;) ). Thanks for the reply anyway. The issue can be closed :) |
Just as note: |
@jonnitto nice solution. Is it somehow possible to render property values inside such a JS block? think of
AnswerFound out: it can be done by using the EEL exp to concat strings:
|
While having separate scripts might in general be the preferable way to load some sprinkles of JavaScript, there are still occasions where an inline script is better to show the actual intent and keep the component coupled with its frontend behavior.
For example, let's say you have a button with a click handler doing a very specific action.
I would like to be able to have a simple fusion component containing the button as well as the script tag with the accompanying event binding.
The text was updated successfully, but these errors were encountered: