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

Feature request: Javascript API #369

Open
rdbeach opened this issue Jun 3, 2020 · 0 comments
Open

Feature request: Javascript API #369

rdbeach opened this issue Jun 3, 2020 · 0 comments

Comments

@rdbeach
Copy link

rdbeach commented Jun 3, 2020

HI. I think the idea of being able to eval several languages right from the browser is a great idea. This is especially useful for teaching basic coding, coding interviews, etc. It would be nice, however, if this program was more controllable and customizable through javascript.
A javascript API would broaden the scope of its application, to make it a more general purpose code evaluator.

For instance, the API would expose:
Methods to get contents from user input.
Methods to listen when a change has occurred in an input.
Methods to evaluate content and return result.
Methods to send result to appropriate output.
Methods to control the behavior of klipsified elements.

Screen Shot 2020-06-03 at 2 23 35 PM

Also, it would be nice if we could keep the physical DOM separate from the evaluation of code, meaning that you would not have to klipsify any elements on the page in order to run these methods.

Finally, expose greater control over how an element is Klipsified. For instance, do you want an input box? Do you want an output box? Etc.

I understand that some of the above functions already exist. But even then, they are not well documented, and not very accessible to the und user.

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