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

Add foreign module and HTML editor #8

Open
paf31 opened this issue Jan 24, 2016 · 5 comments
Open

Add foreign module and HTML editor #8

paf31 opened this issue Jan 24, 2016 · 5 comments

Comments

@paf31
Copy link
Contributor

paf31 commented Jan 24, 2016

maybe with tabs

@LiamGoodacre
Copy link
Member

👍 Can we think of a nice way of having this work in combination with Gists?

Possibly make both sources have their own gists and have the PureScript one reference the other by a comment on the first line (not necessarily shown in the editor).

-- foreign GIST_ID_HERE
module ...

@paulyoung
Copy link

I tried creating a gist with a Main.purs and Main.js hoping that would work.

It would be great if it did, even if it's not the most ideal way to support foreign modules.

@paf31
Copy link
Contributor Author

paf31 commented Aug 1, 2017

The big problem here is security. We don't want unverified foreign code being eval'd on user's machines without their say so.

@paulyoung
Copy link

I figured that would be a big factor.

@paf31
Copy link
Contributor Author

paf31 commented Sep 1, 2017

What we could do is to have compile.purescript.org serve the entire HTML page into the iframe. Then the same origin policy would solve things for us. We could even load more packages this way.

@paf31 paf31 changed the title Add foreign module editor Add foreign module and HTML editor Sep 1, 2017
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

3 participants