Hi! I'm building my first Elm app using the embed-to-HTML approach. I'm 
already using a backend (Node.js with Hapi), and since I think 
server-side-rendering is not supported anytime soon, I'm just passing the 
data from the server to Elm through JS interop.

I've initially used subscription ports to do it, but several days ago Evan 
updated the interop part in guide.elm-lang.org/interop/javascript.html to 
show how to do it with `programWithFlags`. I remember skimming through the 
docs and saw that function, but I didn't even think that it will achieve 
what it does. It's kind of unintuitive that `programWithFlags` means "an 
app which allows initializing model through JS", since in many programming 
stuff "flags" just mean boolean values or switches.

Was there any reason why it's named that way?

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to