Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on A list of companies using Elm in production. Parent comment
I don't know if there is a formal name for this pattern, but we've been calling in the "un-attr" pattern, you define an opaque type like
type Attribute msg = Attr (Html.Attribute msg)
There are no comments on this comment yet.
I don't know if there is a formal name for this pattern, but we've been calling in the "un-attr" pattern, you define an opaque type like
And then expose functions that allow you to set attributes you whitelist. In the JS you use setters to hook into when the attribute changes and respond to it (https://github.com/ellie-app/ellie/blob/master/assets/src/El...)