UbiqueLambda/elm-with-ui-html/1.0.0

NOTE: the latest version is 1.0.1

UI.Renderer.Html

Elm's HTML renderer for the UI module and its backend.

type Encoder

Types that describes and configures the encoding to Elm-compatible HTML.

Initialized the default encoder with the default settings:

  • Node are tagged with <g></g>;
  • Root nodes have class="root";
  • Stack groups have class="stack";
  • unit means CSS' px.
encode : Encoder -> Graphics msg -> List (Html msg)

Outputs Elm-compatible HTML-structure.

NOTE: To be used once in an entire document since it provides a generic spreadsheet.