ToolipsBase64.jl

Easy Base64 images for Toolips.jl
Author ChifiSource
Popularity
3 Stars
Updated Last
1 Year Ago
Started In
June 2022

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()]

Used By Packages

No packages found.