You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
👍 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).
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.
Activity
LiamGoodacre commentedon Mar 16, 2016
👍 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).
paulyoung commentedon Aug 1, 2017
I tried creating a gist with a
Main.pursandMain.jshoping that would work.It would be great if it did, even if it's not the most ideal way to support foreign modules.
paf31 commentedon 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 commentedon Aug 1, 2017
I figured that would be a big factor.
paf31 commentedon Sep 1, 2017
What we could do is to have
compile.purescript.orgserve the entire HTML page into theiframe. Then the same origin policy would solve things for us. We could even load more packages this way.[-]Add foreign module editor[/-][+]Add foreign module and HTML editor[/+]