{"id":17795862,"url":"https://github.com/avh4/elm-compile-html","last_synced_at":"2025-10-06T16:03:23.768Z","repository":{"id":34906177,"uuid":"38945957","full_name":"avh4/elm-compile-html","owner":"avh4","description":"Compile HTML templates into Elm code","archived":false,"fork":false,"pushed_at":"2015-07-14T06:32:30.000Z","size":264,"stargazers_count":7,"open_issues_count":9,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-11T13:46:34.264Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://elm-compile-html.herokuapp.com","language":"Elm","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avh4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-12T01:16:32.000Z","updated_at":"2017-06-07T09:25:16.000Z","dependencies_parsed_at":"2022-09-01T03:23:02.069Z","dependency_job_id":null,"html_url":"https://github.com/avh4/elm-compile-html","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avh4%2Felm-compile-html","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avh4%2Felm-compile-html/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avh4%2Felm-compile-html/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avh4%2Felm-compile-html/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avh4","download_url":"https://codeload.github.com/avh4/elm-compile-html/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243835942,"owners_count":20355611,"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":[],"created_at":"2024-10-27T11:39:13.802Z","updated_at":"2025-10-06T16:03:18.733Z","avatar_url":"https://github.com/avh4.png","language":"Elm","funding_links":[],"categories":[],"sub_categories":[],"readme":"Compile HTML files into Elm code!\n\n### Installation\n\n```bash\ngit clone https://github.com/avh4/elm-compile-html.git\ncd elm-compile-html\nnpm install --global\n```\n\n### Use\n\n```bash\nelm-package install evancz/elm-html\nelm-compile-html MyHtmlFile.html \u003e MyHtmlFile.elm\n```\n\nYou can now import `MyHtmlFile` as an Elm module:\n\n```elm\nimport MyHtmlFile\n\nmain = MyHtmlFile.render\n```\n\n## Example\n\nMyPanel.html:\n\n```html\n\u003cdiv class=\"panel panel-default\"\u003e\n  \u003cdiv class=\"panel-heading\"\u003e\n    \u003ch3 class=\"panel-title\"\u003ePanel title\u003c/h3\u003e\n  \u003c/div\u003e\n  \u003cdiv class=\"panel-body\"\u003e\n    Panel content\n  \u003c/div\u003e\n\u003c/div\u003e\n```\n\nRunning `elm-compile MyPanel.html` yields:\n\n```elm\nmodule MyPanel where\n\nimport Html exposing (Html)\nimport Html.Attributes as Attr\n\nrender : Html\nrender = Html.node \"div\"\n    [ Attr.attribute \"class\" \"panel panel-default\" ]\n    [ Html.text \"\\n  \"\n    , Html.node \"div\"\n        [ Attr.attribute \"class\" \"panel-heading\" ]\n        [ Html.text \"\\n    \"\n        , Html.node \"h3\" [ Attr.attribute \"class\" \"panel-title\" ] [ Html.text \"Panel title\" ]\n        , Html.text \"\\n  \"\n        ]\n    , Html.text \"\\n  \"\n    , Html.node \"div\" [ Attr.attribute \"class\" \"panel-body\" ] [ Html.text \"\\n    Panel content\\n  \" ]\n    , Html.text \"\\n\"\n    ]\n```\n\n\n## Demos\n\nSee `examples/Clock/README.md`.\n\n\n## Development\n\nRunning tests:\n\n```bash\nnpm test\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favh4%2Felm-compile-html","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favh4%2Felm-compile-html","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favh4%2Felm-compile-html/lists"}