In [1]:
Pkg.add("Escher")


INFO: Nothing to be done

In [1]:
using Escher



In [3]:
Pkg.test("Escher")


INFO: Computing test dependencies for Escher...
INFO: Installing ComposeDiff v0.0.1
INFO: Testing Escher
INFO: Escher tests passed
INFO: Removing ComposeDiff v0.0.1

In [2]:
include(Pkg.dir("Escher", "src", "cli", "serve.jl"))


Out[2]:
escher_serve (generic function with 3 methods)

In [3]:
cd(Pkg.dir("Escher", "examples"))

In [4]:
jl_files = filter((f) -> ismatch(r"\.jl$", f),readdir("."))


Out[4]:
11-element Array{ByteString,1}:
 "boids.jl"           
 "code-cell.jl"       
 "form.jl"            
 "keypress.jl"        
 "latex.jl"           
 "layout2.jl"         
 "mc.jl"              
 "minesweeper.jl"     
 "plotting.jl"        
 "recursive-layout.jl"
 "vectorgraphics.jl"  

In [5]:
t = @async escher_serve()


Out[5]:
Task (waiting) @0x000000010f32d3c0
Listening on 0.0.0.0:5555...

In [7]:
Base.throwto(t, InterruptException())


LoadError: InterruptException:
while loading In[7], in expression starting on line 1

In [9]:
istaskdone(t)


Out[9]:
true

In [13]:
for file in jl_files
    println("http://localhost:5555/$file")
end


http://localhost:5555/boids.jl
http://localhost:5555/code-cell.jl
http://localhost:5555/form.jl
http://localhost:5555/keypress.jl
http://localhost:5555/latex.jl
http://localhost:5555/layout2.jl
http://localhost:5555/mc.jl
http://localhost:5555/minesweeper.jl
http://localhost:5555/plotting.jl
http://localhost:5555/recursive-layout.jl
http://localhost:5555/vectorgraphics.jl

In [ ]: