Scaffolding a Route Module

The elm-pages package includes some modules that help you generate Elm files. page

Take a look at the AddRoute.elm Script from the elm-pages starter repo. github

This Script is a great starting point for customizing your own scaffolding Scripts for your project. It is designed to lock in the essential details for defining a Route Module and a Form, while leaving the rest up to you to customize in the script.

See Scaffold.Route page and Scaffold.Form page in the docs.