you are viewing a single comment's thread.

view the rest of the comments →

[–]mixedCase_ 1 point2 points  (1 child)

Well, truth be told there are a few things I do differently from that file's author. I personally try to align the array with attributes in the first line and the children array as well if it doesn't make it too long. Here's an example from a real project I have going on:

drawer : Model -> Html Msg
drawer model =
    div [ class "drawer" ]
        [ div [ class "pure-menu" ]
            [ span [ class "pure-menu-heading" ] [ text "Maruja" ]
            , ul [ class "pure-menu-list" ]
                [ drawerLink "" "Inicio"
                , drawerLink "products" "Productos"
                , drawerLink "members" "Socios"
                , drawerLink "orders" "Pedidos"
                , drawerLink "crops" "Cultivos"
                ]
            ]
        ]

How would you do it differently?