arowM/elm-html-with-context/1.0.1

NOTE: the latest version is 1.0.2

WithContext

Cleaner, hack-free way to pass contexts to Elm view functions

Types

type WithContext context msg

An opaque type representing Html with a context.

Converters

fromHtml : (context -> Html msg) -> WithContext context msg

A constructor for WithContext from Html.

toHtml : context -> WithContext context msg -> Html msg

Convert to Html.

Core functions

(context -> List (Html msg) -> Html msg)
-> List (WithContext context msg)
-> WithContext context msg

Custom node.

text : (context -> String) -> WithContext context msg

Text node.

Low level functions

(context -> subContext)
-> WithContext subContext msg
-> WithContext context msg

This function is supposed to be used with functions in WithContext.Lazy. Please see actual use case for detail.