Dom.Program

This module contains pipeline functions that can be helpful when setting up an
Elm program for initial testing and adding features as you go.

Construct a static program with just setup and run to test your initial
model and view. Then add interaction with update. Add Dom effects, HTTP
requests, and so on with onLoad and updateWithCmds. Add ports with
subscribe or subscribeWithParams. Use runWithFlags to pass data to your
initial model.

The Dom.Program.run function is an alias for VirtualDom.program, so just use
that if you want to set up a program in the standard way.

Basic

setup : (model -> Dom.Node msg) -> model -> Setup model msg

Generate a record that describes the setup of an Elm program; the first
argument is a function that takes a model and generates a view, and the second
argument is an initial model to pass to that function

These two function calls will setup and run a static program (a program where
the view doesn't update):