This is still in its very early states, so don't expect too much.
Generate your package
$> julia -e 'using Pkg; Pkg.generate("YOUR_PACKAGE_NAME")' && cd YOUR_PACKAGE_NAME
Add PlutoBoard and set it up
YOUR_PACKAGE_NAME$> julia --project -e 'using Pkg; Pkg.add(url="https://github.com/UniStuttgart-IKR/PlutoBoard.jl"); using PlutoBoard; PlutoBoard.setup()'
Run the notebook
YOUR_PACKAGE_NAME$> julia --project -e 'using Pluto; Pluto.run(notebook="PlutoBoardNotebook.jl")'
There is some hierarchy:
main
in src/Main.jl
gets called in the beginning, so use this as julia entry pointsrc/Functions.jl
static/javascript/
are getting executed, though static/javascript/javascript.js
is the last one, so use this as js entry pointThere is a simple example in src/Functions.jl
, src/static/index.html
and src/static/javascript/javascript.js
about calling a julia function from javascript with callbacks.