Description
Right now, the code that comes up when you first load Try PureScript is loaded from a gist, whose ID is specified in the configuration (client/config/dev/Try.Config.purs
). That gist also contains links to other gists.
I think using gists for these examples is a bit awkward, since you can't do pull requests on them, and access control on gists is not really a thing either. I think it would be ideal to move them inside the repo, although of course we should continue to support loading code from gists. Perhaps we could achieve this by including these examples in the deploy bundle and hosting them at try.purescript.org, and then implementing an example
query string parameter which operates in a similar way to the gist
one, except that instead of a gist ID to load, it specifies a URL path to a PureScript source file? A query string like ?example=Records
could tell the client to fetch try.purescript.org/examples/Records/Main.purs
and load it into the editor, for instance.