single page apps made easy
Go to file
Ryan Haskell-Glatz 6dae16d7eb arrow bois
2019-10-15 23:57:13 -05:00
example a fresh start :) 2019-10-15 23:52:54 -05:00
package arrow bois 2019-10-15 23:57:13 -05:00
src a fresh start :) 2019-10-15 23:52:54 -05:00
.gitignore add in example 2019-10-04 17:16:02 -05:00
elm-analyse.json a fresh start :) 2019-10-15 23:52:54 -05:00
elm.json a fresh start :) 2019-10-15 23:52:54 -05:00
netlify.toml a fresh start :) 2019-10-15 23:52:54 -05:00
package-lock.json a fresh start :) 2019-10-15 23:52:54 -05:00
package.json a fresh start :) 2019-10-15 23:52:54 -05:00
README.md a fresh start :) 2019-10-15 23:52:54 -05:00

ryannhg/elm-app

an experiment for creating single page apps with Elm!

try it out

  1. npm install

  2. npm run dev

overview

module Main exposing (main)

import Application exposing (Application)
import Generated.Pages as Pages
import Generated.Route as Route
import Layout as Layout


main : Application () Pages.Model Pages.Msg
main =
    Application.create
        { routing =
            { fromUrl = Route.fromUrl
            , toPath = Route.toPath
            }
        , layout =
            { view = Layout.view
            }
        , pages =
            { init = Pages.init
            , update = Pages.update
            , bundle = Pages.bundle
            }
        }

supporting code