SimonDanisch / Bonito.jl

Serving JS to the browser
MIT License
214 stars 31 forks source link

Improvements for static export workflow #173

Closed SimonDanisch closed 1 year ago

SimonDanisch commented 1 year ago

Enables workflow like this:

using Revise, JSServe, Markdown
import JSServe.TailwindDashboard as D

includet("src/html-classes.jl")
includet("src/index.jl")
includet("src/github.jl")
includet("src/support.jl")
includet("src/team.jl")
includet("src/contact.jl")

routes, task, server = interactive_server([asset_path(), joinpath(@__DIR__, "src")]) do
    return Routes(
        "/" => index,
        "/team" => team,
        "/contact" => contact,
        "/support" => support
    )
end

See: https://github.com/MakieOrg/Website/blob/sd/jsserve/make.jl#L1-L21