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

Calling Wisp From JavaScript #168

Open
asimjalis opened this issue Aug 23, 2020 · 3 comments
Open

Calling Wisp From JavaScript #168

asimjalis opened this issue Aug 23, 2020 · 3 comments

Comments

@asimjalis
Copy link

Is there a way to call wisp from JavaScript e.g. from the browser console? This would be useful for debugging.

@asimjalis
Copy link
Author

asimjalis commented Aug 23, 2020

Looks like this works.

compiler = require("wisp/compiler")
compiler.evaluate('(alert "Hello world!")')

Would be helpful in the docs.

@asimjalis
Copy link
Author

Would be helpful if the code snippet above is the README.

@asimjalis asimjalis reopened this Aug 23, 2020
@zot
Copy link

zot commented Aug 25, 2020

Might want to make a fork and a pull request...

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

2 participants