Skip to content

Add foreign module and HTML editor #8

Open

Description

@paf31

maybe with tabs

Activity

  1. LiamGoodacre commented on Mar 16, 2016

    @LiamGoodacre
    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 ...
  2. paulyoung commented on Aug 1, 2017

    @paulyoung

    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.

  3. paf31 commented on Aug 1, 2017

    @paf31
    ContributorAuthor

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

  4. paulyoung commented on Aug 1, 2017

    @paulyoung

    I figured that would be a big factor.

  5. paf31 commented on Sep 1, 2017

    @paf31
    ContributorAuthor

    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.

  6. changed the title [-]Add foreign module editor[/-] [+]Add foreign module and HTML editor[/+] on Sep 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions