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

Question: Possible to generate JavaScript online? #142

Open
djelenc opened this issue Feb 6, 2018 · 0 comments
Open

Question: Possible to generate JavaScript online? #142

djelenc opened this issue Feb 6, 2018 · 0 comments

Comments

@djelenc
Copy link

djelenc commented Feb 6, 2018

I'm trying to figure out whether st-js is a good fit for my project. I've been browsing your site but have not yet been able to find the answer to my question. I hope you do not mind me asking it here.

I wonder whether it is possible to generate JavaScript online -- that is, can I dynamically generate JavaScript in a running Java application?

To make this more obvious: I'm showing a webview which gets populated dynamically with HTML. Now, I'd like to JavaScript to it as well. However, I feel unease writing JavaScript as Java strings; mistakes are too easy to make. So I've been searching for a library that would allow me writing Java code that could be online transpiled into JavaScript. A function in which I could put a Runnable instance manipulating DOM and it would return a JavaScript string.

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