[{"name":"HtmlHelpers","comment":" Convenient helper functions for working with\n[`Html`](http://package.elm-lang.org/packages/elm-lang/html/latest/Html#Html)\n\n@docs contentList, wrapToSingleNode, nothing\n\n","unions":[],"aliases":[],"values":[{"name":"contentList","comment":" This function makes it easier to conditionally render Html.nodes.\nThe most obvious usecase is similar to that of Attributes.classList,\nbut for content rather than classes. Each entry in the list will be added\nand removed depending on the boolean value it is paired with.\n\nFor example, maybe we want to render a few animals:\n\n    viewAnimals : Animal -> Animal -> Animal -> Html msg\n    viewAnimals dog cat mouse =\n        Html.section [ Attributes.id \"animals\" ] <|\n            contentList\n                [ ( Html.text dog.name, dog.visible ) -- dog will be rendered if dog.visible is True\n                , ( Html.text cat.name, cat.visible ) -- etc\n                , ( Html.text mouse.name, mouse.visible ) -- etc\n                ]\n\n","type":"List.List ( Html.Html msg, Basics.Bool ) -> List.List (Html.Html msg)"},{"name":"nothing","comment":" nothing is a convenience function for the most idiomatic and common way to render nothing,\nnamely an empty Html.text.\n","type":"Html.Html msg"},{"name":"wrapToSingleNode","comment":" wrapToSingleNode turns a list of Html nodes into a single node, using the following logic:\n\n  - if the list is empty, return `nothing`\n  - if the list contains only one element, simply return that element\n  - if the list contains multiple elements, wrap them with a plain div with `display: contents`\n\nMore on `display: contents` here: <https://developer.mozilla.org/en-US/docs/Web/CSS/display#contents>\n\n","type":"List.List (Html.Html msg) -> Html.Html msg"}],"binops":[]}]