Commit Graph

15 Commits

Author SHA1 Message Date
Dillon Kearns
621b7a76c1 Generate toLink function. 2022-09-13 10:31:01 -07:00
Dillon Kearns
b4aceaeb64 Add missing catchall branch. 2022-09-13 08:50:40 -07:00
Dillon Kearns
90ae03c271 Improve some type annotations that are getting referenced incorrectly without the help of Elm.withType (see https://github.com/mdgriffith/elm-codegen/issues/48). 2022-09-13 08:42:12 -07:00
Dillon Kearns
ef9b664cb3 Fix redirectTo generated definition. 2022-09-13 08:20:29 -07:00
Dillon Kearns
24622df871 Generate routeToPath. 2022-09-13 08:17:23 -07:00
Dillon Kearns
56558ca126 Use segmentsToRoute in generated module. 2022-09-13 07:11:41 -07:00
Dillon Kearns
392389ebbc Include Just in front of route helper. 2022-09-13 06:35:42 -07:00
Dillon Kearns
27d13c5a15 Prepare for generating 2 branches for optional params. 2022-09-12 21:45:34 -07:00
Dillon Kearns
9e9cf969e9 Use elm-syntax-dsl for case expression. 2022-09-12 16:59:11 -07:00
Dillon Kearns
012aac229a Add initial function generation for segmentsToRoute. 2022-09-12 15:01:59 -07:00
Dillon Kearns
2e881e0de5 Add more functions to generated Route.elm. 2022-09-12 14:36:54 -07:00
Dillon Kearns
d38d398460 Include hardcoded baseUrl in generated Route file. 2022-09-12 13:43:02 -07:00
Dillon Kearns
3f12c6ccb5 Add test for dynamic route param. 2022-09-12 12:16:18 -07:00
Dillon Kearns
d8639e617b Pass in list of templates to new code generation for Route module. 2022-09-12 11:49:02 -07:00
Dillon Kearns
ba6f0903ce Add boilerplate for elm-codegen. 2022-09-12 10:16:00 -07:00