eeue56/elm-html-in-elm/2.0.1

NOTE: this package is not compatible with Elm 0.19.1

ElmHtml.ToString

Convert ElmHtml to string.

nodeRecordToString : FormatOptions -> NodeRecord -> List String

Convert a node record to a string. This basically takes the tag name, then pulls all the facts into tag declaration, then goes through the children and nests them under this one

nodeToString : ElmHtml -> String

Convert a given html node to a string based on the type

nodeToStringWithOptions : FormatOptions -> ElmHtml -> String

same as nodeToString, but with options

type alias FormatOptions =
{ indent : Int
, newLines : Bool
}

Formatting options to be used for converting to string

defaultFormatOptions : FormatOptions

default formatting options