JonyEpsilon / gorilla-repl

A rich REPL for Clojure in the notebook style.

Home Page:http://gorilla-repl.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Viewer docs for viewing Gists are incomplete.

dasmoth opened this issue · comments

The Gist URL template here seems to be incomplete -- I can't get this to work without adding an extra filename= parameter

Compare:

      http://viewer.gorilla-repl.org/view.html?source=gist&id=3bdede1df8232d255e35&filename=biodatoms-demo

with:

     http://viewer.gorilla-repl.org/view.html?source=gist&id=3bdede1df8232d255e35

In the latter case, there's also an error in the JS console:

   Uncaught TypeError: Cannot read property 'content' of undefined

I'm also wondering if it might be worth defaulting the filename for gists containing only one file.

Huh, not sure how that happened! Thanks for pointing it out - I'll fix the link when I have a chance. Default filename a good idea - I'll look into it.

Have updated the docs, and made single-file gists default to the only file, as suggested. Thanks for the report :-)

BTW, that worksheet you posted a link to looks neat :-)