Elm Stuff

I'm Luke

@luke_dot_js

@lukewestby

@luke

builtwithelm.co

elm-http-builder

elm-template

elm-verbal-expressions

elm-community

view : Model -> Html Msg
view model =
    div []
        [ button [ onClick Decrement ] [ text "-" ]
        , span [] [ text <| toString model.count ]
        , button [ onClick Increment ] [ text "+" ]
        ]

Actual DOM

VirtualDom.Program flags
Html Msg
view
parent
.appendChild()
update
element
.addEventListener()
onMessage()

Literally anything!

Program flags
Node Msg
view
update
[[Send]]
[[Write]]
[[Listen]]
view : Model -> Node Msg
view model =
    Launchpad.group
        [ Launchpad.button
            { row = 0
            , column = 0
            , on = True
            , onButtonOff = Just ButtonOn
            , onButtonOn = Just ButtonOff
            , color = Launchpad.red
            }
        , Launchpad.button
            { row = 0
            , column = 1
            , on = True
            , onButtonOff = Just ButtonOn
            , onButtonOn = Just ButtonOff
            , color = Launchpad.green
            }
        ]

Thank you!

Made with Slides.com