{"id":13561518,"url":"https://github.com/elm/html","last_synced_at":"2025-05-16T14:04:40.593Z","repository":{"id":38451767,"uuid":"53896691","full_name":"elm/html","owner":"elm","description":"Use HTML in Elm!","archived":false,"fork":false,"pushed_at":"2023-09-21T22:32:44.000Z","size":467,"stargazers_count":398,"open_issues_count":74,"forks_count":98,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-04-09T08:06:40.432Z","etag":null,"topics":["elm","html"],"latest_commit_sha":null,"homepage":"https://package.elm-lang.org/packages/elm/html/latest/","language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-03-14T22:33:53.000Z","updated_at":"2025-04-05T00:53:16.000Z","dependencies_parsed_at":"2024-01-14T03:28:42.522Z","dependency_job_id":"e3815075-0ead-43ac-ab9c-fb6dcbccaba9","html_url":"https://github.com/elm/html","commit_stats":{"total_commits":325,"total_committers":36,"mean_commits":9.027777777777779,"dds":"0.38769230769230767","last_synced_commit":"94c079007f8a7ed282d5b53f4a49101dd0b6cf99"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elm%2Fhtml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elm%2Fhtml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elm%2Fhtml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elm%2Fhtml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elm","download_url":"https://codeload.github.com/elm/html/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254544146,"owners_count":22088807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elm","html"],"created_at":"2024-08-01T13:00:57.797Z","updated_at":"2025-05-16T14:04:40.564Z","avatar_url":"https://github.com/elm.png","language":"Elm","funding_links":[],"categories":["Elm"],"sub_categories":[],"readme":"# HTML\n\nQuickly render HTML in Elm.\n\n\n## Examples\n\nThe HTML part of an Elm program looks something like this:\n\n```elm\nimport Html exposing (Html, button, div, text)\nimport Html.Events exposing (onClick)\n\ntype Msg = Increment | Decrement\n\nview : Int -\u003e Html Msg\nview count =\n  div []\n    [ button [ onClick Decrement ] [ text \"-\" ]\n    , div [] [ text (String.fromInt count) ]\n    , button [ onClick Increment ] [ text \"+\" ]\n    ]\n```\n\nIf you call `view 42` you get something like this:\n\n```html\n\u003cdiv\u003e\n  \u003cbutton\u003e-\u003c/button\u003e\n  \u003cdiv\u003e42\u003c/div\u003e\n  \u003cbutton\u003e+\u003c/button\u003e\n\u003c/div\u003e\n```\n\nThis snippet comes from a complete example. You can play with it online [here](https://elm-lang.org/examples/buttons) and read how it works [here](https://guide.elm-lang.org/architecture/user_input/buttons.html).\n\nYou can play with a bunch of other examples [here](https://elm-lang.org/examples).\n\n\n## Learn More\n\n**Definitely read through [guide.elm-lang.org](https://guide.elm-lang.org/) to understand how this all works!** The section on [The Elm Architecture](https://guide.elm-lang.org/architecture/index.html) is particularly helpful.\n\n\n## Implementation\n\nThis library is backed by [elm/virtual-dom](https://package.elm-lang.org/packages/elm/virtual-dom/latest/) which handles the dirty details of rendering DOM nodes quickly. You can read some blog posts about it here:\n\n  - [Blazing Fast HTML, Round Two](https://elm-lang.org/blog/blazing-fast-html-round-two)\n  - [Blazing Fast HTML](https://elm-lang.org/blog/blazing-fast-html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felm%2Fhtml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felm%2Fhtml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felm%2Fhtml/lists"}