You could have elm-reactor
serve custom HTML like Ilias described. Personally I prefer having a Reactor.elm
entry point that supplies default flags to the main
function of Main.elm
module Main exposing (main, reactor)
main =
Html.programFlags
{ init = init
-- ...
}
defaultFlags =
-- Your reactor flags
reactor =
Html.program
{ init = init defaultFlags
-- ...
}
init flags =
-- ...
module Reactor exposing (main)
import Main
main =
Main.reactor