{"id":16589493,"url":"https://github.com/rnons/purescript-svg-parser-smolder","last_synced_at":"2026-01-29T14:09:17.112Z","repository":{"id":58239093,"uuid":"152732888","full_name":"rnons/purescript-svg-parser-smolder","owner":"rnons","description":"A library to inline SVG string into smolder views","archived":false,"fork":false,"pushed_at":"2018-10-12T10:17:24.000Z","size":267,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-01T04:38:56.719Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://rnons.github.io/purescript-svg-parser-smolder","language":"PureScript","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/rnons.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}},"created_at":"2018-10-12T10:15:00.000Z","updated_at":"2018-10-12T10:39:50.000Z","dependencies_parsed_at":"2022-08-31T00:30:43.029Z","dependency_job_id":null,"html_url":"https://github.com/rnons/purescript-svg-parser-smolder","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rnons/purescript-svg-parser-smolder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnons%2Fpurescript-svg-parser-smolder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnons%2Fpurescript-svg-parser-smolder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnons%2Fpurescript-svg-parser-smolder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnons%2Fpurescript-svg-parser-smolder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rnons","download_url":"https://codeload.github.com/rnons/purescript-svg-parser-smolder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rnons%2Fpurescript-svg-parser-smolder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28879020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T10:31:27.438Z","status":"ssl_error","status_checked_at":"2026-01-29T10:31:01.017Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-11T23:09:01.488Z","updated_at":"2026-01-29T14:09:17.077Z","avatar_url":"https://github.com/rnons.png","language":"PureScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# purescript-svg-parser-smolder\n\n\u003ca href=\"https://pursuit.purescript.org/packages/purescript-svg-parser-smolder\"\u003e\n  \u003cimg src=\"https://pursuit.purescript.org/packages/purescript-svg-parser-smolder/badge\"\n       alt=\"purescript-svg-parser-smolder on Pursuit\"\u003e\n  \u003c/img\u003e\n\u003c/a\u003e\n\nA library to inline SVG string into smolder views.\n\nSee [Demo](https://rnons.github.io/purescript-svg-parser-smolder) for an example.\n\n## How to use\n\n```purescript\nimport Svg.Renderer.Smolder (icon)\n\n-- | You can use FFI and webpack raw-loader to load external SVG files\ncode :: String\ncode = \"\"\"\u003csvg xmlns=\"http://www.w3.org/2000/svg\" width=\"14\" height=\"16\" viewBox=\"0 0 14 16\"\u003e\u003cpath fill-rule=\"evenodd\" d=\"M9.5 3L8 4.5 11.5 8 8 11.5 9.5 13 14 8 9.5 3zm-5 0L0 8l4.5 5L6 11.5 2.5 8 6 4.5 4.5 3z\"/\u003e\u003c/svg\u003e\"\"\"\n\ntype Icon = forall e. HTML e\n\niconCode :: Icon\niconCode = icon code\n```\n\nIt's as simple as this, in most cases you only need the `icon` function. You can then use `iconCode` in your view, you can also apply additional className to it.\n\n\n```purescript\nimport Text.Smolder.HTML.Attributes as HA\nimport Text.Smolder.Markup ((!))\n\nview =\n  iconCode ! HA.className \"icon\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frnons%2Fpurescript-svg-parser-smolder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frnons%2Fpurescript-svg-parser-smolder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frnons%2Fpurescript-svg-parser-smolder/lists"}