Use bool attribute server-side rendering fix (see https://github.com/elm-explorations/test/pull/212).

This commit is contained in:
Dillon Kearns 2023-02-01 08:28:44 -08:00
parent 737cb66903
commit 98495df07e

View File

@ -130,17 +130,16 @@ nodeRecordToString options { tag, children, facts } =
|> String.join " "
|> Just
boolToString b =
case b of
True ->
"True"
False ->
"False"
boolAttributes =
Dict.toList facts.boolAttributes
|> List.map (\( k, v ) -> k ++ "=" ++ (String.toLower <| boolToString v))
|> List.filterMap
(\( k, v ) ->
if v then
Just k
else
Nothing
)
|> String.join " "
|> Just
in