Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

ChifiSource/ToolipsBase64.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dead repo

ToolipsBase64 is now a part of ToolipsServables. ToolipsServables.

  • ( This project can still be used with Toolips 0.2. )

usage

Go ahead and try this example code in your REPL!

using Pkg
Pkg.add("Toolips")
Pkg.add("ToolipsBase64")
Pkg.add("ToolipsSession")
using Toolips
using ToolipsSession
using ToolipsBase64

serveb64 = route("/") do c::Connection
      # this content could be a Julia Image, or a plot, in this example we assume
      #    julia_img is a PNG Julia image.
      image = base64img("image", julia_img, "png")
      on(c, image, "click") do cm::ComponentModifier
            update_base64!(cm, image, other_julia_img, "png")
      end
      write!(c, image)
end

routes = routes(serveb64)
st = ServerTemplate("127.0.0.1", 8000, routes(serveb64), [Session(), Logger()]

About

Easy Base64 images for Toolips.jl

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages