Update docs.

This commit is contained in:
Dillon Kearns 2022-02-14 11:27:30 -08:00
parent 4ba800d22d
commit 205de41f21
2 changed files with 4 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@ -295,11 +295,14 @@ getBuildTimeRoutes (ApiRoute handler) =
handler.buildTimeRoutes handler.buildTimeRoutes
{-| Include head tags on every page's HTML.
-}
withGlobalHeadTags : DataSource (List Head.Tag) -> ApiRoute response -> ApiRoute response withGlobalHeadTags : DataSource (List Head.Tag) -> ApiRoute response -> ApiRoute response
withGlobalHeadTags globalHeadTags (ApiRoute handler) = withGlobalHeadTags globalHeadTags (ApiRoute handler) =
ApiRoute { handler | globalHeadTags = Just globalHeadTags } ApiRoute { handler | globalHeadTags = Just globalHeadTags }
{-| -}
getGlobalHeadTagsDataSource : ApiRoute response -> Maybe (DataSource (List Head.Tag)) getGlobalHeadTagsDataSource : ApiRoute response -> Maybe (DataSource (List Head.Tag))
getGlobalHeadTagsDataSource (ApiRoute handler) = getGlobalHeadTagsDataSource (ApiRoute handler) =
handler.globalHeadTags handler.globalHeadTags