diff --git a/examples/end-to-end/app/Route/Blog/Slug_.elm b/examples/end-to-end/app/Route/Blog/Slug_.elm index 1f8e0b94..f9fa50fb 100644 --- a/examples/end-to-end/app/Route/Blog/Slug_.elm +++ b/examples/end-to-end/app/Route/Blog/Slug_.elm @@ -1,4 +1,4 @@ -module Route.Blog.Slug_ exposing (Data, Model, Msg, page) +module Route.Blog.Slug_ exposing (Data, Model, Msg, route) import DataSource exposing (DataSource) import Head @@ -22,8 +22,8 @@ type alias RouteParams = { slug : String } -page : StatelessRoute RouteParams Data -page = +route : StatelessRoute RouteParams Data +route = RouteBuilder.preRender { head = head , pages = pages diff --git a/examples/end-to-end/app/Route/CookieTest.elm b/examples/end-to-end/app/Route/CookieTest.elm index 5b6d5f0a..9c71fb48 100644 --- a/examples/end-to-end/app/Route/CookieTest.elm +++ b/examples/end-to-end/app/Route/CookieTest.elm @@ -1,4 +1,4 @@ -module Route.CookieTest exposing (Data, Model, Msg, page) +module Route.CookieTest exposing (Data, Model, Msg, route) import DataSource exposing (DataSource) import Head @@ -25,8 +25,8 @@ type alias RouteParams = {} -page : StatelessRoute RouteParams Data -page = +route : StatelessRoute RouteParams Data +route = RouteBuilder.serverRender { head = head , data = data diff --git a/examples/end-to-end/app/Route/FileData.elm b/examples/end-to-end/app/Route/FileData.elm index 6e78b120..64b9f61d 100644 --- a/examples/end-to-end/app/Route/FileData.elm +++ b/examples/end-to-end/app/Route/FileData.elm @@ -1,4 +1,4 @@ -module Route.FileData exposing (Data, Model, Msg, page) +module Route.FileData exposing (Data, Model, Msg, route) import DataSource exposing (DataSource) import DataSource.File @@ -25,8 +25,8 @@ type alias RouteParams = {} -page : StatelessRoute RouteParams Data -page = +route : StatelessRoute RouteParams Data +route = RouteBuilder.single { head = head , data = data diff --git a/examples/end-to-end/app/Route/Index.elm b/examples/end-to-end/app/Route/Index.elm index 68f6cfa0..85222f2c 100644 --- a/examples/end-to-end/app/Route/Index.elm +++ b/examples/end-to-end/app/Route/Index.elm @@ -1,4 +1,4 @@ -module Route.Index exposing (Data, Model, Msg, page) +module Route.Index exposing (Data, Model, Msg, route) import DataSource exposing (DataSource) import DataSource.File @@ -28,8 +28,8 @@ type alias RouteParams = {} -page : StatelessRoute RouteParams Data -page = +route : StatelessRoute RouteParams Data +route = RouteBuilder.single { head = head , data = data diff --git a/examples/end-to-end/app/Route/Links.elm b/examples/end-to-end/app/Route/Links.elm index e2ac9737..29ce1e75 100644 --- a/examples/end-to-end/app/Route/Links.elm +++ b/examples/end-to-end/app/Route/Links.elm @@ -1,4 +1,4 @@ -module Route.Links exposing (Data, Model, Msg, page) +module Route.Links exposing (Data, Model, Msg, route) import DataSource exposing (DataSource) import Head @@ -24,8 +24,8 @@ type alias RouteParams = {} -page : StatelessRoute RouteParams Data -page = +route : StatelessRoute RouteParams Data +route = RouteBuilder.single { head = head , data = data diff --git a/examples/end-to-end/app/Route/Test/BasicAuth.elm b/examples/end-to-end/app/Route/Test/BasicAuth.elm index 1abda9c0..ae4ad4bd 100644 --- a/examples/end-to-end/app/Route/Test/BasicAuth.elm +++ b/examples/end-to-end/app/Route/Test/BasicAuth.elm @@ -1,4 +1,4 @@ -module Route.Test.BasicAuth exposing (Data, Model, Msg, page) +module Route.Test.BasicAuth exposing (Data, Model, Msg, route) import Base64 import DataSource exposing (DataSource) @@ -24,8 +24,8 @@ type alias RouteParams = {} -page : StatelessRoute RouteParams Data -page = +route : StatelessRoute RouteParams Data +route = RouteBuilder.serverRender { head = head , data = data diff --git a/examples/end-to-end/app/Route/Test/ResponseHeaders.elm b/examples/end-to-end/app/Route/Test/ResponseHeaders.elm index d41cd39e..9342db3c 100644 --- a/examples/end-to-end/app/Route/Test/ResponseHeaders.elm +++ b/examples/end-to-end/app/Route/Test/ResponseHeaders.elm @@ -1,4 +1,4 @@ -module Route.Test.ResponseHeaders exposing (Data, Model, Msg, page) +module Route.Test.ResponseHeaders exposing (Data, Model, Msg, route) import Base64 import DataSource exposing (DataSource) @@ -25,8 +25,8 @@ type alias RouteParams = {} -page : StatelessRoute RouteParams Data -page = +route : StatelessRoute RouteParams Data +route = RouteBuilder.serverRender { head = head , data = data