mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-27 11:05:46 +03:00
Use bool attribute server-side rendering fix (see https://github.com/elm-explorations/test/pull/212).
This commit is contained in:
parent
737cb66903
commit
98495df07e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user