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

reference HTML resources in the current project

fredokun opened this issue · comments

Suppose I have an image <proj>/resources/myimage.svg (<proj> is the project directory).
Is there a way to reference it in the markdown ? e.g.

<img href="resources/myimage.svg"/>

(which does not work ...)

For the moment, I do something like:

(html-view (slurp "resources/myimage.svg"))

There's an undocumented method to do that: the project directory is served up at /project-files. It's undocumented because I'm not sure it's a great idea, for a number of reasons. I currently have no plans to remove the feature, but I wouldn't necessarily depend on it being around forever :-)

Well, I think I'll continue the html-view way, but I think it's interesting to have a way feeding the repl with some www assets ... Thanks for the undocumented info anyways.